Apache2 Freezes

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

  1. celtic

    celtic New Member

    My ISPconfig v10 is working fine but sometimes and without any known pattern all websites come offline and inspite the server is up the only way to put thinks back in order is to stop and start Apache service.

    This can be very serious since I cand diagnose the cause and sometimes the websites are offline several hours.

    Can anyone help me troubleshoot this issue~?

    Kind regards and thanks in advance
     
  2. jameso

    jameso New Member

    I also have this issue occasionally.

    Celtic, are you using ISPconfig?
     
  3. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    One of my reasons to switch to ISPConfig was the ability to use the Apache webserver version I wanted, because I experienced the same problems with DirectAdmin. Apache on my previous servers always core dumped. I had a cron job watching the log files, which restarted apache when it found an error.

    I also switched from Redhat to Ubuntu and this last change seems to be the best choice I even made. I do no have any problem with apache anymore. I do use the distrubution version, as the manual compiled Apache on Redhat was the one giving problems. I know this statement doesn't help solving your problem. Which distro are you using?
     
  4. celtic

    celtic New Member

    I am using ISPCOnfig 2.2.10 under Ubunto 6.06.

    Don't know my Apache2 version because my linux skills are very poor.

    I've had the idea of creating a script that restarts the service from time to time to put order in my server but that wont solve the issue just minimizes the damages.

    Help is appreciated.
     
  5. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    To find your apache version
    Code:
    httpd -V
    . I'm running Ubt 6.10.
     
  6. celtic

    celtic New Member

    Server version: Apache/2.0.55
    Server built: May 29 2006 01:52:53
    Server's Module Magic Number: 20020903:11
    Architecture: 32-bit
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D HTTPD_ROOT=""
    -D SUEXEC_BIN="/usr/lib/apache2/suexec2"
    -D DEFAULT_PIDLOG="/var/run/apache2.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
    -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in Apache's error log?

    Monit can do this for you: http://www.howtoforge.com/server_monitoring_monit_munin
     
  8. celtic

    celtic New Member

    In my webadmin Apache2 is not configured (???) so can anyone tell me what file to watch and post?
     
  9. falko

    falko Super Moderator ISPConfig Developer

    What's webadmin?
    Are there any errors in Apache's error log?
     
  10. celtic

    celtic New Member

    Sorry... Its not webadmin but webmin. :rolleyes:

    Anyway... My error log manages to collect 11 Mb of data in one week so it probably has some issue pending.

    Attached is the error log from 9th March till now and we had a breakdown yesterday.
     

    Attached Files:

  11. falko

    falko Super Moderator ISPConfig Developer

    Can you post the contents of the error log here instead of attaching it?
     
  12. celtic

    celtic New Member

    [Wed Mar 14 15:33:45 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:34:39 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:34:39 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:34:40 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:34:40 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:34:41 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:34:41 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:35:40 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:35:40 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:40:11 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:40:11 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:40:18 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:40:18 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:40:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:40:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:41:19 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:41:19 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:41:26 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:41:26 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:42:16 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:42:16 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:42:23 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:42:23 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:42:52 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:42:52 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:43:01 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:43:01 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:43:29 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:43:29 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:48:47 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:48:47 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:48:50 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:48:50 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:49:02 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:49:02 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:49:06 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:49:06 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:49:58 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:49:58 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:02 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:02 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:07 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:07 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:21 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:21 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:34 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:34 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:46 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:46 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:47 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:47 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:50 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:50 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:50 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:50 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:59 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:50:59 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:07 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:07 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:10 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:10 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:11 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:11 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:34 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:51:34 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:52:53 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:52:53 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:17 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:17 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:17 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:17 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:23 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:23 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:23 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:23 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:31 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:31 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:49 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:49 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:49 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:53:49 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:21 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:21 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:39 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:39 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:49 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:49 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:58 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:56:58 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:12 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:12 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:16 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:16 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:19 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:19 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:20 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:20 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:28 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:57:28 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:58:40 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:58:40 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:58:42 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 15:58:42 2007] [error] an unknown filter was not added: PHP
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    [Wed Mar 14 21:29:19 2007] [notice] caught SIGTERM, shutting down
    PHP: Error parsing /etc/php5/apache2/php.ini on line 1164
    [Wed Mar 14 21:29:27 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
    PHP Warning: Module 'gd' already loaded in Unknown on line 0
    PHP Warning: Module 'mysql' already loaded in Unknown on line 0
    [Wed Mar 14 21:29:28 2007] [notice] Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
    [Wed Mar 14 21:31:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 21:31:27 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 21:31:31 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 21:31:31 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 21:31:59 2007] [error] an unknown filter was not added: PHP
    [Wed Mar 14 21:31:59 2007] [error] an unknown filter was not added: PHP


    ... This is only a VERY small part of it!
     
  13. falko

    falko Super Moderator ISPConfig Developer

  14. celtic

    celtic New Member

    Attached Files:

    • php.zip
      File size:
      14.1 KB
      Views:
      284
  15. falko

    falko Super Moderator ISPConfig Developer

    Did you modify /home/admispconfig/ispconfig/lib/config.inc.php, as I suggested?

    This is what you have in line 1164 and 1165:

    Code:
    magic_quotes_gpc = 1    [B][COLOR="Red"](preferred but not necessary)[/COLOR][/B]
    magic_quotes_runtime = 0    [B][COLOR="Red"](necessary)[/COLOR][/B]
    This is wrong. Please change it to
    Code:
    magic_quotes_gpc = 1
    magic_quotes_runtime = 0
    and restart Apache.
     
  16. celtic

    celtic New Member

    This is the line in my file

    $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)
     
  17. falko

    falko Super Moderator ISPConfig Developer

    And what's in your Vhosts_ispconfig.conf?
     
  18. celtic

    celtic New Member

    You can see the file attached because I really dont know witch part of it is revelant for your analysis.

    Thanks in advance
     

    Attached Files:

  19. falko

    falko Super Moderator ISPConfig Developer

    Ok, you still hhave the
    Code:
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    part in Vhosts_ispconfig.conf. Please update something in ISPConfig or create a new web site, and Vhosts_ispconfig.conf will be rewritten (without the Filter part).
     
  20. celtic

    celtic New Member

    I have changed one web site and created another and removed it later.

    The attached file is the file re-written after your post, but those lines remained. Should I remove them manually?

    Thanks in advance
     

    Attached Files:

Share This Page