View Full Version : Web server not online in ispconfig
cruz
19th October 2007, 04:07
I had error messages in the apache log file. [Sun Oct 14 12:24:12 2007] [error] an unknown filter was not added: PHP
So I was reading a post on the site about chaging some code. I changed it and now my web server has stoped. I did make a copy of the file before changing it. I uploaded the file back to the server hoping it would fix it. this is what I changed.This has already been fixed many releases ago. You will just have to change the line from:
$go_info["server"]["apache2_php"] = 'both'; // one string of one or more comma seperated options: 'filter' = set PHP filters, 'addtype' = Set PHP addtype, 'both' = Set Filter + Addtype, 'engine' = Use "php_admin_flag engine on/off", suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)
to:
$go_info["server"]["apache2_php"] = 'addtype'; // one string of one or more comma seperated options: 'filter' = set PHP filters, 'addtype' = Set PHP addtype, 'both' = Set Filter + Addtype, 'engine' = Use "php_admin_flag engine on/off", suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)
in the file /home/admispconfig/ispconfig/lib/config.inc.php
I am getting error wehn I start server. syntax error on line 185 of /etc/apache2/apache2.conf could not open config file /etc/apache2/mods-enable/php4.load no such file or directorycan you please help?
falko
19th October 2007, 14:07
It should be /etc/apache2/mods-enabled/php4.load, not /etc/apache2/mods-enable/php4.load.
What's in line 185 of /etc/apache2/apache2.conf?
cruz
19th October 2007, 17:23
I typed all that in, I must have misstyped it. I cut and pasted from your example when i changed it. I changed it back and it is still not comming online. I can reach the ispconfig interface, but not my website I have running on the server. I also took a loook at php4.conf and there is a red mark on the file. Also the file next to it has a red mark on it. php.load. How can I fix this to get my site back online?
cruz
19th October 2007, 23:12
Can someone please help me get this fixed. My server is offline. Thank you.
falko
21st October 2007, 01:14
What's the output of httpd -t and ls -la /etc/apache2/mods-enabled?
cruz
21st October 2007, 03:41
httpd -thttpd: Syntax error on line 185 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/php4.load: No such file or directory
ls -la /etc/apache2/mods-enabledserver1:~# ls -la /etc/apache2/mods-enabled
total 8
drwxr-xr-x 2 root root 4096 2007-10-18 15:42 .
drwxr-xr-x 8 root root 4096 2007-10-20 17:29 ..
lrwxrwxrwx 1 root root 28 2007-10-04 13:59 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 2007-10-04 13:59 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 2007-10-04 13:59 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 2007-10-04 13:59 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 2007-10-04 13:59 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 2007-10-04 13:59 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 2007-10-04 13:59 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 2007-10-04 13:59 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 30 2007-10-04 14:03 include.load -> ../mods-available/include.load
lrwxrwxrwx 1 root root 27 2007-10-04 13:59 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 2007-10-04 13:59 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 37 2007-10-18 15:42 php4.conf -> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx 1 root root 37 2007-10-18 15:42 php4.load -> /etc/apache2/mods-available/php4.load
lrwxrwxrwx 1 root root 27 2007-10-04 14:01 php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 2007-10-04 14:01 php5.load -> ../mods-available/php5.load
lrwxrwxrwx 1 root root 30 2007-10-04 14:03 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 31 2007-10-04 13:59 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 26 2007-10-04 14:03 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 2007-10-04 14:03 ssl.load -> ../mods-available/ssl.load
lrwxrwxrwx 1 root root 29 2007-10-04 13:59 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 29 2007-10-04 14:03 suexec.load -> ../mods-available/suexec.load
server1:~# server1:~# ls -la /etc/apache2/mods-enabled
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 2007-10-04 13:59 env.load -> ../mods-available/env.load
PranK
21st October 2007, 06:45
What about ls -la /etc/apache2/mods-available ? As mods-enabled is just full of symlinks to that directory.
cruz
21st October 2007, 07:50
ls -la /etc/apache2/mods-available .This is the outcome.
falko
22nd October 2007, 14:42
-rw-r--r-- 1 root root 0 2007-10-20 17:41 php4.conf
-rw-r--r-- 1 root root 0 2007-10-20 17:41 php4.loadThese two files seem to be empty. Did you delete their contents?
cruz
29th October 2007, 22:50
I wanted to flow up on this so that maybe if someone runs into this it will help them. I went into the ispconfig panel/management/services/monitoring and added monitoring for the web port 80 and it fixed it. It went back on-line and the files that had Red marks are not red anymore. I don't understand ,but thank God it is working. Thanks to the people that have posted to help resolve this problem
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.