Apache2 on Ubuntu Hardy: mod-php5 crash

Discussion in 'Apache' started by aasimpson, Feb 16, 2009.

  1. #1
    Hello. I would greatly appreciate any helpful feedback on this issue.

    On 2 occasions last week, we became aware that our vitally important business web server was not working properly. On both occasions I quickly found that the cause was PHP 5, which we run as the standard Apache module for apache-mpm-prefork, libapache2-mod-php5, having completely frozen up without any obvious explanation. Apache 2 itself was found to be working perfectly, as plain HTML files and images were served as normal, as were Perl CGI scripts. But PHP was completely out of action. I managed to (temporarily at least) resolve the problem, on the first occasion by uninstalling and reinstalling libapache2-mod-php5 using apt-get, and on the second occasion by using dpkg-reconfigure on the same package and restarting Apache.

    Nonetheless, we seek an explanation, so that we might be properly armed against any further repeat. We are greatly alarmed that having fixed this issue one evening, and thinking it to be a freak one-off occurrence, it happened again the following morning with exactly the same symptoms. We worry that perhaps we are being maliciously attacked in some way. On the other hand, this could be a crash due to an unlikely software bug?

    The crash floods our Apache system error logs with literally millions of whitespace-separated zeros e.g. 0 0 0 0 0 0 0 0 --:--:-- 0:05:05 --:--:-- 00 0 0 0 0 0 0 0 --:--:-- 0:05:05.

    That's about as much information as I can gather. Thank you in advance for any help. All ideas welcome.

    -- Andrew.
     
    aasimpson, Feb 16, 2009 IP