ispCP - Board - Support
Suicidal apache - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Suicidal apache (/thread-466.html)



Suicidal apache - Esni - 05-01-2007 10:05 PM

I have a prob with my apache since it likes to die every now and then. For some reason it also likes to restart itself about 30 minutes after it has died.

The apache logs aren't giving that much information about what happens and at the moment the only most likely answer is that a php-script causes a memory leak(I have memory exhaust-errors in the /var/log/apache2/error.log) which kills apache when it happens in the same as cronjobs are running.

I was wondering if people in here have any idea how to perhaps locate this memoryleak php-script since omega doesn't give too specific data of a single user in the server. Or if there is a way to fix it in some other way.


RE: Suicidal apache - ephigenie - 05-01-2007 10:26 PM

but you're using fastcgi aren't you ? because then memory leaks of php normaly do not affect apache (except you got OOM Messages and your apache got killed by the kernel)

Otherwise you can enable a php-log for the domain you guessed the script is on.
Just go to your /var/www/fcgi/<domain>/<phpVersion>/php.ini

Perhaps you can even try to use a different php version for that host...