Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th October 2007, 03:07
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default Web server not online in ispconfig

I had error messages in the apache log file.
HTML Code:
[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.
HTML Code:
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.
HTML Code:
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 directory
can you please help?
Reply With Quote
Sponsored Links
  #2  
Old 19th October 2007, 13:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th October 2007, 16:23
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default typo error

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?

Last edited by cruz; 19th October 2007 at 16:31.
Reply With Quote
  #4  
Old 19th October 2007, 22:12
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default

Can someone please help me get this fixed. My server is offline. Thank you.
Reply With Quote
  #5  
Old 21st October 2007, 00:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
httpd -t
and
Code:
ls -la /etc/apache2/mods-enabled
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 21st October 2007, 02:41
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default output

httpd -t
HTML Code:
httpd: 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-enabled
HTML Code:
server1:~# 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
Reply With Quote
  #7  
Old 21st October 2007, 05:45
PranK PranK is offline
Junior Member
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What about ls -la /etc/apache2/mods-available ? As mods-enabled is just full of symlinks to that directory.
Reply With Quote
  #8  
Old 21st October 2007, 06:50
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default this is the outcome

ls -la /etc/apache2/mods-available .This is the outcome.[HTMLtotal 320
drwxr-xr-x 2 root root 4096 2007-10-20 17:40 .
drwxr-xr-x 8 root root 4096 2007-10-20 17:29 ..
-rw-r--r-- 1 root root 66 2007-06-17 13:12 actions.load
-rw-r--r-- 1 root root 62 2007-06-17 13:12 alias.load
-rw-r--r-- 1 root root 60 2007-06-17 13:12 asis.load
-rw-r--r-- 1 root root 72 2007-06-17 13:12 auth_basic.load
-rw-r--r-- 1 root root 74 2007-06-17 13:12 auth_digest.load
-rw-r--r-- 1 root root 74 2007-06-17 13:12 authn_alias.load
-rw-r--r-- 1 root root 72 2007-06-17 13:12 authn_anon.load
-rw-r--r-- 1 root root 70 2007-06-17 13:12 authn_dbd.load
-rw-r--r-- 1 root root 70 2007-06-17 13:12 authn_dbm.load
-rw-r--r-- 1 root root 78 2007-06-17 13:12 authn_default.load
-rw-r--r-- 1 root root 72 2007-06-17 13:12 authn_file.load
-rw-r--r-- 1 root root 90 2007-06-17 13:12 authnz_ldap.load
-rw-r--r-- 1 root root 70 2007-06-17 13:12 authz_dbm.load
-rw-r--r-- 1 root root 78 2007-06-17 13:12 authz_default.load
-rw-r--r-- 1 root root 82 2007-06-17 13:12 authz_groupfile.load
-rw-r--r-- 1 root root 72 2007-06-17 13:12 authz_host.load
-rw-r--r-- 1 root root 74 2007-06-17 13:12 authz_owner.load
-rw-r--r-- 1 root root 72 2007-06-17 13:12 authz_user.load
-rw-r--r-- 1 root root 70 2007-06-17 13:12 autoindex.load
-rw-r--r-- 1 root root 62 2007-06-17 13:12 cache.load
-rw-r--r-- 1 root root 70 2007-06-17 13:12 cern_meta.load
-rw-r--r-- 1 root root 68 2007-06-17 13:12 cgid.conf
-rw-r--r-- 1 root root 60 2007-06-17 13:12 cgid.load
-rw-r--r-- 1 root root 58 2007-06-17 13:12 cgi.load
-rw-r--r-- 1 root root 76 2007-06-17 13:12 charset_lite.load
-rw-r--r-- 1 root root 36 2007-06-17 13:12 dav_fs.conf
-rw-r--r-- 1 root root 79 2007-06-17 13:12 dav_fs.load
-rw-r--r-- 1 root root 58 2007-06-17 13:12 dav.load
-rw-r--r-- 1 root root 68 2007-06-17 13:12 dav_lock.load
-rw-r--r-- 1 root root 58 2007-06-17 13:12 dbd.load
-rw-r--r-- 1 root root 107 2007-06-17 13:12 deflate.conf
-rw-r--r-- 1 root root 66 2007-06-17 13:12 deflate.load
-rw-r--r-- 1 root root 145 2007-10-04 14:02 dir.conf
-rw-r--r-- 1 root root 58 2007-06-17 13:12 dir.load
-rw-r--r-- 1 root root 554 2007-06-17 13:12 disk_cache.conf
-rw-r--r-- 1 root root 89 2007-06-17 13:12 disk_cache.load
-rw-r--r-- 1 root root 64 2007-06-17 13:12 dump_io.load
-rw-r--r-- 1 root root 58 2007-06-17 13:12 env.load
-rw-r--r-- 1 root root 66 2007-06-17 13:12 expires.load
-rw-r--r-- 1 root root 72 2007-06-17 13:12 ext_filter.load
-rw-r--r-- 1 root root 89 2007-06-17 13:12 file_cache.load
-rw-r--r-- 1 root root 64 2007-06-17 13:12 filter.load
-rw-r--r-- 1 root root 66 2007-06-17 13:12 headers.load
-rw-r--r-- 1 root root 62 2007-06-17 13:12 ident.load
-rw-r--r-- 1 root root 68 2007-06-17 13:12 imagemap.load
-rw-r--r-- 1 root root 66 2007-06-17 13:12 include.load
-rw-r--r-- 1 root root 60 2007-06-17 13:12 info.load
-rw-r--r-- 1 root root 60 2007-06-17 13:12 ldap.load
-rw-r--r-- 1 root root 76 2007-06-17 13:12 log_forensic.load
-rw-r--r-- 1 root root 185 2007-06-17 13:12 mem_cache.conf
-rw-r--r-- 1 root root 87 2007-06-17 13:12 mem_cache.load
-rw-r--r-- 1 root root 60 2007-06-17 13:12 mime.load
-rw-r--r-- 1 root root 89 2007-06-17 13:12 mime_magic.conf
-rw-r--r-- 1 root root 72 2007-06-17 13:12 mime_magic.load
-rw-r--r-- 1 root root 74 2007-06-17 13:12 negotiation.load
-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.load
-rw-r--r-- 1 root root 135 2007-10-04 14:04 php5.conf
-rw-r--r-- 1 root root 59 2007-07-02 14:46 php5.load
-rw-r--r-- 1 root root 87 2007-06-17 13:12 proxy_ajp.load
-rw-r--r-- 1 root root 103 2007-06-17 13:12 proxy_balancer.load
-rw-r--r-- 1 root root 589 2007-06-17 13:12 proxy.conf
-rw-r--r-- 1 root root 95 2007-06-17 13:12 proxy_connect.load
-rw-r--r-- 1 root root 87 2007-06-17 13:12 proxy_ftp.load
-rw-r--r-- 1 root root 89 2007-06-17 13:12 proxy_http.load
-rw-r--r-- 1 root root 62 2007-06-17 13:12 proxy.load
-rw-r--r-- 1 root root 66 2007-06-17 13:12 rewrite.load
-rw-r--r-- 1 root root 68 2007-06-17 13:12 setenvif.load
-rw-r--r-- 1 root root 298 2007-06-17 13:12 sick-hack-to-update-modules
-rw-r--r-- 1 root root 66 2007-06-17 13:12 speling.load
-rw-r--r-- 1 root root 1781 2007-06-17 13:12 ssl.conf
-rw-r--r-- 1 root root 58 2007-06-17 13:12 ssl.load
-rw-r--r-- 1 root root 64 2007-06-17 13:12 status.load
-rw-r--r-- 1 root root 64 2007-06-17 13:12 suexec.load
-rw-r--r-- 1 root root 70 2007-06-17 13:12 unique_id.load
-rw-r--r-- 1 root root 293 2007-06-17 13:12 userdir.conf
-rw-r--r-- 1 root root 66 2007-06-17 13:12 userdir.load
-rw-r--r-- 1 root root 70 2007-06-17 13:12 usertrack.load
-rw-r--r-- 1 root root 66 2007-06-17 13:12 version.load
-rw-r--r-- 1 root root 74 2007-06-17 13:12 vhost_alias.load
][/HTML]
Reply With Quote
  #9  
Old 22nd October 2007, 13:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
-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.load
These two files seem to be empty. Did you delete their contents?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 29th October 2007, 21:50
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
 
Default it is running now

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig running on default web server (port 80) geek.de.nz Installation/Configuration 3 31st March 2008 10:32
move ISPconfig server, howto provell General 2 11th December 2006 22:50
Need a Server to run ISPCONFIG on ! Look Here... jockstrap Tips/Tricks/Mods 23 27th July 2006 11:46
Unable to open ISPConfig Web neu2linux Installation/Configuration 27 25th May 2006 14:09
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 07:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.