Web server not online in ispconfig

Discussion in 'Server Operation' started by cruz, Oct 19, 2007.

  1. cruz

    cruz New Member

    I had error messages in the apache log file.
    HTML:
    [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:
    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:
    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?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    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?
     
  3. cruz

    cruz New Member

    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: Oct 19, 2007
  4. cruz

    cruz New Member

    Can someone please help me get this fixed. My server is offline. Thank you.
     
  5. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    httpd -t
    and
    Code:
    ls -la /etc/apache2/mods-enabled
    ?
     
  6. cruz

    cruz New Member

    output

    httpd -t
    HTML:
    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:
    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
    
     
  7. PranK

    PranK New Member

    What about ls -la /etc/apache2/mods-available ? As mods-enabled is just full of symlinks to that directory.
     
  8. cruz

    cruz New Member

    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]
     
  9. falko

    falko Super Moderator ISPConfig Developer

    These two files seem to be empty. Did you delete their contents?
     
  10. cruz

    cruz New Member

    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
     

Share This Page