Current time: 11-27-2024, 09:43 AM Hello There, Guest! (LoginRegister)


Post Reply 
everything is being redirected to ispCP - Apache problem I think
Author Message
jim.thornton Offline
Junior Member
*

Posts: 29
Joined: Jul 2009
Reputation: 0
Post: #1
everything is being redirected to ispCP - Apache problem I think
I have just finished setting up the ispCP Omega instance. I was initially getting a Fatal error which was being caused by mcrypt not being installed. I have edited the Wiki Installation page to note at the bottom that this package is needed. In addition, I have added a Troubleshooting page showing the error message I got and the solution.

Anyway... I have come across another problem that I suspect to be an apache issue but I'm not sure.

Setup: VM Running in Virtualbox
Host OS: Vista 32 bit
VM Software: Virtual Host

Guest OS: CentOS 5.3
Apache: 2.2.8

I have setup the VM in bridge mode and assigned a static IP to my server. The IP is 192.168.98 and I have another IP at eth0:0 which is 192.168.1.99.

I have installed as per the installation guide and I can login to http://admin.domain.com, HOWEVER, if I go to http://www.domain.com it also takes me to the login page.

I created an index.php file only containing the "php_info();" call and when I go to http://www.domain.com/index.php it shows the ispCP login box still.

I have added the following lines to my hosts file:
Code:
192.168.1.98    domain.com
192.168.1.98    www.domain.com
192.168.1.98    admin.domain.com

Can someone please help me figure this out?
08-01-2009 04:22 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: everything is being redirected to ispCP - Apache problem I think
Check which IP is used as the domain.com VirtualHost in the apache configuration file (/etc/apache2/sites-enabled/ispcp). What does this file say?
08-02-2009 10:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jim.thornton Offline
Junior Member
*

Posts: 29
Joined: Jul 2009
Reputation: 0
Post: #3
RE: everything is being redirected to ispCP - Apache problem I think
I don't know but maybe I messed something up. I don't have an /etc/apache2 directory. Could this be caused because before I installed ispCP, I had already installed Apache 2.2.8, Mysql 5.0.58 and PHP 5.2.9?

There is no /etc/apache2/sites-enabled/ispcp either

I think I definitely have a configuration error here and would appreciate any help I can get.
08-03-2009 05:04 AM
Find all posts by this user Quote this message in a reply
jim.thornton Offline
Junior Member
*

Posts: 29
Joined: Jul 2009
Reputation: 0
Post: #4
RE: everything is being redirected to ispCP - Apache problem I think
As mentioned, there is no /apache2 directory. There is however /httpd in which I found this.

/etc/httpd/vhosts/00_master.conf
[conf]
# Master Begin
#

<VirtualHost 192.168.1.98:80>

ServerAdmin jim@extra6.com
DocumentRoot /var/www/ispcp/gui

ServerName admin.cancrm.com

Alias /errors /var/www/ispcp/gui/errordocs/

ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html

Alias /pma /var/www/ispcp/gui/tools/pma/
Alias /webmail /var/www/ispcp/gui/tools/webmail/
Alias /ftp /var/www/ispcp/gui/tools/filemanager/

<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>

<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter/rkhunter.log:/var/log/chkrootkit.log:/usr/share/pear/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>

</VirtualHost>

#
# Master End
#
[/conf]

I would like to get this fixed if anyone is willing to help.
08-03-2009 09:02 AM
Find all posts by this user Quote this message in a reply
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #5
RE: everything is being redirected to ispCP - Apache problem I think
(08-03-2009 05:04 AM)jim.thornton Wrote:  I don't know but maybe I messed something up. I don't have an /etc/apache2 directory. Could this be caused because before I installed ispCP, I had already installed Apache 2.2.8, Mysql 5.0.58 and PHP 5.2.9?

There is no /etc/apache2/sites-enabled/ispcp either

I think I definitely have a configuration error here and would appreciate any help I can get.

nope this couldn't be.
is in the same folger a file ispcp.conf. Please post this.
08-03-2009 02:22 PM
Find all posts by this user Quote this message in a reply
jim.thornton Offline
Junior Member
*

Posts: 29
Joined: Jul 2009
Reputation: 0
Post: #6
RE: everything is being redirected to ispCP - Apache problem I think
ispcp installed to /var/www/ispcp not /etc
okay... I found /etc/ispcp/apache but there is no sites-enabled at all.

# find . -name "sites*" from the root shows that there is no such file in the system.

Did I mess up the installation? Apache was already installed prior to installing ispcp
(This post was last modified: 08-04-2009 08:08 AM by jim.thornton.)
08-04-2009 08:04 AM
Find all posts by this user Quote this message in a reply
jim.thornton Offline
Junior Member
*

Posts: 29
Joined: Jul 2009
Reputation: 0
Post: #7
RE: everything is being redirected to ispCP - Apache problem I think
Any suggestions on this?
08-05-2009 03:33 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #8
RE: everything is being redirected to ispCP - Apache problem I think
centos has the sites in /etc/httpd/conf.d

if your not familier with your distro I'd recommend you to use debian, as ispcp works out of the box with it... Nevertheless its possible to run ispcp on centos (I have the same configuration like apache, fastcgi php etc.. running on several centos servers, without ispcp but that shouldn't make much difference when the permissions and file locations are met...)
08-05-2009 03:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jim.thornton Offline
Junior Member
*

Posts: 29
Joined: Jul 2009
Reputation: 0
Post: #9
RE: everything is being redirected to ispCP - Apache problem I think
I've never used debian and have only been using CentOS (linux in general) for 1.5 years. I didn't choose debian because I was afraid of having to re-learn linux. Not to mention, I was under the impression that CentOS was better because it is an Enterprise version.

Files:
/etc/httpd/conf.d -> Contains two files:
Code:
-rw-r--r-- 1 root root 1579 Jul 31 06:29 fastcgi_ispcp.conf
-rw-r--r-- 1 root root  991 Jul 31 06:29 fcgid_ispcp.conf

/etc/httpd/conf.d/fastcgi_ispcp.conf:
Code:
#
# ispCP Ï (OMEGA) a Virtual Hosting Control System
#
# @copyright    2006-2008 by ispCP | http://isp-control.net
# @version              SVN: $Id$
# @link                 http://isp-control.net
# @author               ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​

<IfModule mod_fastcgi.c>
        FastCgiWrapper On
        FastCgiIpcDir /var/lib/apache2/fastcgi

        FastCgiConfig -minProcesses 1 \
                      -maxProcesses 400 \
                      -maxClassProcesses 5 \
                      -multiThreshold 80 \
                      -killInterval 60 \
                      -startDelay 5
                      # -singleThreshold 100 \
                      # -autoUpdate \
                      # -pass-header HTTP_AUTHORIZATION

        FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user vu2000 -group vu2000 -idle-timeout 300

        #
        # PHP5 SUPPORT
        #

        AddHandler php-fastcgi .php .php5

        <Location /php5/php5-fcgi-starter>
            SetHandler fastcgi-script
            Options +ExecCGI
        </Location>

        Action php-fastcgi /php5/php5-fcgi-starter
        AddType application/x-httpd-php .php .php5
</IfModule>

/etc/httpd/ispcp -> EMPTY

/etc/httpd/vhosts contents:
Code:
-rw-r--r-- 1 root root 2803 Aug  2 14:59 00_master.conf
-rw-r--r-- 1 root root 1455 Jul 31 06:29 01_awstats.conf
-rw-r--r-- 1 root root  791 Jul 31 06:29 ispcp.conf

Does this help?

NOTE: I'm using FastCGI not fcgid
08-05-2009 04:16 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #10
RE: everything is being redirected to ispCP - Apache problem I think
please post content of ispcp.conf
08-05-2009 04:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 7 Guest(s)