everything is being redirected to ispCP - Apache problem I think - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: everything is being redirected to ispCP - Apache problem I think (/thread-7350.html) Pages: 1 2 |
everything is being redirected to ispCP - Apache problem I think - jim.thornton - 08-01-2009 04:22 PM 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 Can someone please help me figure this out? RE: everything is being redirected to ispCP - Apache problem I think - kilburn - 08-02-2009 10:22 AM 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? RE: everything is being redirected to ispCP - Apache problem I think - jim.thornton - 08-03-2009 05:04 AM 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. RE: everything is being redirected to ispCP - Apache problem I think - jim.thornton - 08-03-2009 09:02 AM 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. RE: everything is being redirected to ispCP - Apache problem I think - MasterTH - 08-03-2009 02:22 PM (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? nope this couldn't be. is in the same folger a file ispcp.conf. Please post this. RE: everything is being redirected to ispCP - Apache problem I think - jim.thornton - 08-04-2009 08:04 AM 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 RE: everything is being redirected to ispCP - Apache problem I think - jim.thornton - 08-05-2009 03:33 AM Any suggestions on this? RE: everything is being redirected to ispCP - Apache problem I think - rbtux - 08-05-2009 03:59 AM 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...) RE: everything is being redirected to ispCP - Apache problem I think - jim.thornton - 08-05-2009 04:16 AM 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 /etc/httpd/conf.d/fastcgi_ispcp.conf: Code: # /etc/httpd/ispcp -> EMPTY /etc/httpd/vhosts contents: Code: -rw-r--r-- 1 root root 2803 Aug 2 14:59 00_master.conf Does this help? NOTE: I'm using FastCGI not fcgid RE: everything is being redirected to ispCP - Apache problem I think - rbtux - 08-05-2009 04:26 AM please post content of ispcp.conf |