View Full Version : Apache crashes?

08 May 2008, 15:46
Hi, I seem to have a really wierd problem here. For a long time now, everytime I wake up in the morning, I have to restart httpd (apache 2.0.63).

The reason behind this is that the server fails to serve PHP pages, so the forum on the server is innaccessible. Checking the child thread processes, only 52 at maximum is formed. The server itself is fine and responds well, but it just fails to serve Apache pages.

One of my staff has noticed that it stops serving PHP pages between approximately 10:40 and 10:45 EST (what time is this GMT?)

What is going on?

I'm in a CentOS 4 VPS, with 386 RAM, cPanel/WHM (VPS Optimized). 10GB Hard drive.

Paul M
08 May 2008, 17:20
What do the logs say ?

08 May 2008, 19:56
The logs don't show anything abnormal - in fact, they don't really show apache crashing. All seems normal in it. I'll post a copy in the morning if is crashes.

08 May 2008, 20:45
I had the same problem some time ago, something was using all the memory available and that was the reason. The logs didn't say anything too.

If you can install software on your server I recommend you to install webmin, and then configure one monitor on Apache to issue a restart command when it detects that the server is down.

Other -> System and Server Status -> Click on Apache Webserver ->

If monitor goes down, run command -> apachectl -k restart

This is doing the job for me...


08 May 2008, 20:45
Not the apache logs for you site, the actual apache log itself. For instance, mine is located at /etc/httpd/logs/error_log

08 May 2008, 21:07
When my old server did this i exceeded my Database Size

Do you have your Attachments in the File System ?

08 May 2008, 21:47
Ty all - the attachments are in the file system :) I'll install webmin - and I'll check the apache log right now :)

--------------- Added 1210287396 at 1210287396 ---------------

There don't seem to be any memory related issues, but I see a lot of this:

[Wed May 07 06:33:27 2008] [notice] child pid 21725 exit signal Segmentation fault (11)
[Wed May 07 06:33:38 2008] [notice] child pid 21734 exit signal Segmentation fault (11)
[Wed May 07 06:35:03 2008] [notice] child pid 11433 exit signal Segmentation fault (11)
[Wed May 07 06:36:53 2008] [notice] child pid 21985 exit signal Segmentation fault (11)
[Wed May 07 06:38:07 2008] [notice] child pid 21574 exit signal Segmentation fault (11)
[Wed May 07 06:40:07 2008] [notice] child pid 22170 exit signal Segmentation fault (11)
[Wed May 07 06:41:11 2008] [notice] child pid 24311 exit signal Segmentation fault (11)
[Wed May 07 06:43:16 2008] [notice] child pid 26310 exit signal Segmentation fault (11)
[Wed May 07 06:43:22 2008] [notice] child pid 22143 exit signal Segmentation fault (11)

--------------- Added 1210289340 at 1210289340 ---------------

I think XCache is causing this - so I'll be removing that and replacing it with APC :)