View Single Post
  #6  
Old 10th May 2009, 10:23
wires wires is offline
Junior Member
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i am not running any firewalls. (system-config-securitylevel disabled)

I followed the guide http://www.howtoforge.com/perfect-se...ispconfig-3-p6 and installed every packages listed there besides PureFTPd. I disabled the firewall at the beginning of the tutorial and rebooted the system. But like before, ISPConfig 3 tells me it has been installed successfully but yet i cannot see any login page from the port i choosed in installation.

I noticed this Apache error
Quote:
[...]
Configuring Getmail
Configuring Pureftpd
Configuring MyDNS
Configuring Apache
PHP Warnings: Invalid argument supplied for foreach() in /tmp/ispconfig3_install/install/dist/lib/fedora.lib.php on line 433
Configuring Firewall
[...]
Installing ISPConfig
from fedora.lib.php the line contains the following
PHP Code:
            foreach($records as $rec) { 
in
PHP Code:
        // copy('tpl/apache_ispconfig.conf.master',$vhost_conf_dir.'/ispconfig.conf');
        
$content rf("tpl/apache_ispconfig.conf.master");
        
$records $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'");
        if(
count($records) > 0) {
            foreach(
$records as $rec) {
                
$content .= "NameVirtualHost ".$rec["ip_address"].":80\n";
                
$content .= "NameVirtualHost ".$rec["ip_address"].":443\n";
            }
        } 
my httpd.conf contains the following at the end
Quote:
<VirtualHost _default_:80>
</VirtualHost>

<VirtualHost _default_:443>
</VirtualHost>
any ideas ?

ps:

i added the following to the end of my httpd.conf file
Quote:
NameVirtualHost *:80
NameVirtualHost *:443
Include /etc/httpd/conf/sites-enabled/
and now when i try to access ISPConfig login page using the domain name i choosed, internet explorer downloads a file named my domain.name[1] and inside that file i have this:

PHP Code:
<?php

/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

error_reporting(E_ALL|E_STRICT);

require_once(
'../lib/config.inc.php');
require_once(
'../lib/app.inc.php');

$app->uses('tpl');
$app->tpl->newTemplate('main.tpl.htm');

$app->tpl_defaults();
$app->tpl->pparse();
?>
i think apache isn't loading PHP scripts properly... i just checked phpmyadmin and it gives me a text page instead of the index page coded in php.

Last edited by wires; 10th May 2009 at 10:32.
Reply With Quote