Apache2 Freezes

Discussion in 'Server Operation' started by celtic, Mar 4, 2007.

  1. falko

    falko Super Moderator ISPConfig Developer

    Can you check the value of $go_info["server"]["apache2_php"] in /home/admispconfig/ispconfig/lib/config.inc.php again?
     
  2. celtic

    celtic New Member

    Here is the line:

    $go_info["server"]["apache2_php"] = 'addtype'; // 'filter' = set PHP filters, 'addtype' = Set PHP addtype or 'both' = Set Filter + Addtype, suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)

    For best analysis I have attached the entire file.

    Thanks in advance once again
     

    Attached Files:

  3. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /root/ispconfig
    ? Any erros in /home/admispconfig/ispconfig/ispconfig.log?
     
  4. celtic

    celtic New Member

    total 100
    drwxr-xr-x 9 root root 4096 2007-05-24 13:57 .
    drwxr-xr-x 5 root root 4096 2007-02-24 13:10 ..
    -rwxr-xr-x 1 root root 33478 2007-02-24 13:10 cronolog
    -rwxr-xr-x 1 root root 9673 2007-02-24 13:10 cronosplit
    drwxr-xr-x 12 root root 4096 2007-02-24 13:02 httpd
    drwxr-xr-x 14 root root 4096 2007-02-24 13:10 isp
    -rw-r--r-- 1 root root 8 2007-05-24 13:57 .old_path_httpd_root
    drwxr-xr-x 6 root root 4096 2007-02-24 11:26 openssl
    drwxr-xr-x 6 root root 4096 2007-02-24 13:07 php
    drwxr-xr-x 4 root root 4096 2007-02-24 13:10 scripts
    drwxr-xr-x 4 root root 4096 2007-02-24 13:10 standard_cgis
    drwxr-xr-x 2 root root 4096 2007-02-24 13:10 sv
    -rwx------ 1 root root 9389 2007-02-24 13:10 uninstall


    I have not noticed any errors only Warns and Info.

    Attached is the log file

    Thanks in advance
     

    Attached Files:

    • log.zip
      File size:
      36.5 KB
      Views:
      305
  5. falko

    falko Super Moderator ISPConfig Developer

    Ok, that's the problem:
    Code:
    24.05.2007 - 14:57:26 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2417: WARNING: could not httpd -t  &> /dev/null
    24.05.2007 - 14:57:26 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2428: httpd syntax seems to contain errors, reloading with old configuration
    Can you rename the latest /etc/apache2/vhosts/Vhosts_ispconfig.conf file that ends with a date to /etc/apache2/vhosts/Vhosts_ispconfig.conf and run
    Code:
    httpd -t
    ? What's the output?
     
  6. celtic

    celtic New Member

    root@jfo:~# httpd -t
    Syntax error on line 200 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
    Invalid command 'safe_mode', perhaps mis-spelled or defined by a module not included in the server configuration
    root@jfo:~#
     
  7. celtic

    celtic New Member

    Extra info:

    My Apache is scheduled to re-start as 4 AM every day to minimize problems of freezing.

    Today because of this error it did not start so this morning I had to copy back the old file for it to re-start.

    Also I cannot upgrade to ISPConfig latest version.
     
  8. falko

    falko Super Moderator ISPConfig Developer

    It seems you have disabled the PHP module.
    What's the output of
    Code:
    ls -la /etc/apache2/mods-available
    and
    Code:
    ls -la /etc/apache2/mods-enabled
    ?
     
  9. celtic

    celtic New Member

    root@jfo:~# ls -la /etc/apache2/mods-available
    total 304
    drwxr-xr-x 2 root root 4096 2006-07-26 23:51 .
    drwxr-xr-x 9 root root 4096 2006-12-03 19:22 ..
    -rw-r--r-- 1 root root 66 2006-05-29 02:55 actions.load
    -rw-r--r-- 1 root root 60 2006-05-29 02:55 asis.load
    -rw-r--r-- 1 root root 70 2006-05-29 02:55 auth_anon.load
    -rw-r--r-- 1 root root 68 2006-05-29 02:55 auth_dbm.load
    -rw-r--r-- 1 root root 74 2006-05-29 02:55 auth_digest.load
    -rw-r--r-- 1 root root 130 2006-05-29 02:55 auth_ldap.load
    -rw-r--r-- 1 root root 62 2006-05-29 02:55 cache.load
    -rw-r--r-- 1 root root 70 2006-05-29 02:55 cern_meta.load
    -rw-r--r-- 1 root root 61 2006-05-29 02:55 cgid.conf
    -rw-r--r-- 1 root root 60 2006-05-29 02:55 cgid.load
    -rw-r--r-- 1 root root 58 2006-07-16 21:54 cgi.load
    -rw-r--r-- 1 root root 58 2006-07-16 03:31 cgi.load.16-07-06_04-31-46
    -rw-r--r-- 1 root root 58 2006-07-16 18:19 cgi.load.16-07-06_19-19-02
    -rw-r--r-- 1 root root 58 2006-07-16 21:54 cgi.load.16-07-06_22-53-58
    -rw-r--r-- 1 root root 37 2006-05-29 02:55 dav_fs.conf
    -rw-r--r-- 1 root root 64 2006-05-29 02:55 dav_fs.load
    -rw-r--r-- 1 root root 58 2006-05-29 02:55 dav.load
    -rw-r--r-- 1 root root 66 2006-05-29 02:55 deflate.load
    -rw-r--r-- 1 root root 72 2006-05-29 02:55 disk_cache.load
    -rw-r--r-- 1 root root 66 2006-05-29 02:55 expires.load
    -rw-r--r-- 1 root root 72 2006-05-29 02:55 ext_filter.load
    -rw-r--r-- 1 root root 72 2006-05-29 02:55 file_cache.load
    -rw-r--r-- 1 root root 66 2006-05-29 02:55 headers.load
    -rw-r--r-- 1 root root 60 2006-05-29 02:55 imap.load
    -rw-r--r-- 1 root root 66 2006-07-16 21:54 include.load
    -rw-r--r-- 1 root root 66 2006-07-16 03:31 include.load.16-07-06_04-31-46
    -rw-r--r-- 1 root root 66 2006-07-16 18:19 include.load.16-07-06_19-19-02
    -rw-r--r-- 1 root root 66 2006-07-16 21:54 include.load.16-07-06_22-53-58
    -rw-r--r-- 1 root root 60 2006-05-29 02:55 info.load
    -rw-r--r-- 1 root root 60 2006-05-29 02:55 ldap.load
    -rw-r--r-- 1 root root 70 2006-05-29 02:55 mem_cache.load
    -rw-r--r-- 1 root root 85 2006-05-29 02:55 mime_magic.conf
    -rw-r--r-- 1 root root 72 2006-05-29 02:55 mime_magic.load
    -rw-r--r-- 1 root root 135 2006-07-16 21:54 php5.conf
    -rw-r--r-- 1 root root 135 2006-07-16 03:31 php5.conf.16-07-06_04-31-46
    -rw-r--r-- 1 root root 135 2006-07-16 18:19 php5.conf.16-07-06_19-19-02
    -rw-r--r-- 1 root root 135 2006-07-16 21:54 php5.conf.16-07-06_22-53-58
    -rw-r--r-- 1 root root 59 2006-07-16 21:54 php5.load
    -rw-r--r-- 1 root root 59 2006-07-16 03:31 php5.load.16-07-06_04-31-46
    -rw-r--r-- 1 root root 59 2006-07-16 18:19 php5.load.16-07-06_19-19-02
    -rw-r--r-- 1 root root 59 2006-07-16 21:54 php5.load.16-07-06_22-53-58
    -rw-r--r-- 1 root root 840 2006-05-29 02:55 proxy.conf
    -rw-r--r-- 1 root root 78 2006-05-29 02:55 proxy_connect.load
    -rw-r--r-- 1 root root 70 2006-05-29 02:55 proxy_ftp.load
    -rw-r--r-- 1 root root 72 2006-05-29 02:55 proxy_http.load
    -rw-r--r-- 1 root root 316 2006-05-29 02:55 proxy.load
    -rw-r--r-- 1 root root 66 2006-07-16 21:54 rewrite.load
    -rw-r--r-- 1 root root 66 2006-07-16 03:31 rewrite.load.16-07-06_04-31-46
    -rw-r--r-- 1 root root 66 2006-07-16 18:19 rewrite.load.16-07-06_19-19-02
    -rw-r--r-- 1 root root 66 2006-07-16 21:54 rewrite.load.16-07-06_22-53-58
    -rw-r--r-- 1 root root 66 2006-05-29 02:55 speling.load
    -rw-r--r-- 1 root root 3545 2006-07-16 21:54 ssl.conf
    -rw-r--r-- 1 root root 3545 2006-07-16 03:31 ssl.conf.16-07-06_04-31-46
    -rw-r--r-- 1 root root 3545 2006-07-16 18:19 ssl.conf.16-07-06_19-19-02
    -rw-r--r-- 1 root root 3545 2006-07-16 21:54 ssl.conf.16-07-06_22-53-58
    -rw-r--r-- 1 root root 58 2006-07-16 21:54 ssl.load
    -rw-r--r-- 1 root root 58 2006-07-16 03:31 ssl.load.16-07-06_04-31-46
    -rw-r--r-- 1 root root 58 2006-07-16 18:19 ssl.load.16-07-06_19-19-02
    -rw-r--r-- 1 root root 58 2006-07-16 21:54 ssl.load.16-07-06_22-53-58
    -rw-r--r-- 1 root root 64 2006-07-16 21:54 suexec.load
    -rw-r--r-- 1 root root 64 2006-07-16 03:31 suexec.load.16-07-06_04-31-46
    -rw-r--r-- 1 root root 64 2006-07-16 18:19 suexec.load.16-07-06_19-19-02
    -rw-r--r-- 1 root root 64 2006-07-16 21:54 suexec.load.16-07-06_22-53-58
    -rw-r--r-- 1 root root 70 2006-05-29 02:55 unique_id.load
    -rw-r--r-- 1 root root 244 2006-07-16 21:54 userdir.conf
    -rw-r--r-- 1 root root 244 2006-07-16 03:31 userdir.conf.16-07-06_04-31-46
    -rw-r--r-- 1 root root 244 2006-07-16 18:19 userdir.conf.16-07-06_19-19-02
    -rw-r--r-- 1 root root 244 2006-07-16 21:54 userdir.conf.16-07-06_22-53-58
    -rw-r--r-- 1 root root 66 2006-07-16 21:54 userdir.load
    -rw-r--r-- 1 root root 66 2006-07-16 03:31 userdir.load.16-07-06_04-31-46
    -rw-r--r-- 1 root root 66 2006-07-16 18:19 userdir.load.16-07-06_19-19-02
    -rw-r--r-- 1 root root 66 2006-07-16 21:54 userdir.load.16-07-06_22-53-58
    -rw-r--r-- 1 root root 70 2006-05-29 02:55 usertrack.load
    -rw-r--r-- 1 root root 74 2006-05-29 02:55 vhost_alias.load
    root@jfo:~# ls -la /etc/apache2/mods-enabled
    total 8
    drwxr-xr-x 2 root root 4096 2006-07-15 21:35 .
    drwxr-xr-x 9 root root 4096 2006-12-03 19:22 ..
    lrwxrwxrwx 1 root root 36 2006-07-15 21:30 cgi.load -> /etc/apache2/mods-available/cgi.load
    lrwxrwxrwx 1 root root 40 2006-07-15 21:35 include.load -> /etc/apache2/mods-available/include.load
    lrwxrwxrwx 1 root root 37 2006-07-15 21:33 php5.conf -> /etc/apache2/mods-available/php5.conf
    lrwxrwxrwx 1 root root 37 2006-07-15 21:33 php5.load -> /etc/apache2/mods-available/php5.load
    lrwxrwxrwx 1 root root 40 2006-07-15 21:35 rewrite.load -> /etc/apache2/mods-available/rewrite.load
    lrwxrwxrwx 1 root root 36 2006-07-15 21:35 ssl.conf -> /etc/apache2/mods-available/ssl.conf
    lrwxrwxrwx 1 root root 36 2006-07-15 21:35 ssl.load -> /etc/apache2/mods-available/ssl.load
    lrwxrwxrwx 1 root root 39 2006-07-15 21:35 suexec.load -> /etc/apache2/mods-available/suexec.load
    lrwxrwxrwx 1 root root 40 2006-07-15 21:30 userdir.conf -> /etc/apache2/mods-available/userdir.conf
    lrwxrwxrwx 1 root root 40 2006-07-15 21:30 userdir.load -> /etc/apache2/mods-available/userdir.load
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Looks ok.

    What's in line 200 of /etc/apache2/vhosts/Vhosts_ispconfig.conf? IT should contain
    Code:
    php_admin_flag safe_mode On
    or
    Code:
    php_admin_flag safe_mode Off
    not just safe_mode...
     
  11. celtic

    celtic New Member

    My apache2 error log now reports lots of errors like these:

    postdrop: warning: mail_queue_enter: create file maildrop/116421.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/126752.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/137059.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/147376.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/157760.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/168046.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/178347.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/188669.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/199008.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/209343.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/219672.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/229987.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/240312.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/250634.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/260975.3640: Permission denied
    postdrop: warning: mail_queue_enter: create file maildrop/261346.3640: Permission denied

    Could this affect the performance?

    The freezings seem to be gone now. if they continue I'll post here.

    One strange this that keeps happening is that when I post in a SMF forum hosted by ISP Config the page never changes after I hit "post" but if I go back and refresh the topic the post is there. Is this related in any way with this Apache2 thing?

    Kind Regards
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Why does this appear in your Apache logs? This should be in your mail log!
     

Share This Page