Page 1 of 1

Apache stops working after awhile - I have to restart it

PostPosted: 03. June 2005 15:58
by Bidybag
In the task manager i look at the processes and the first problem is that apache is loaded up twice there. Only 1 of the apache processes is doing work tho. The other is just staying there with the same amount of memory and cpu. I have to end the process myself from task manager.

I am using the xampp control panel 2.1 with the service for apache and mysql installed and when i click STOP it doesnt stop. It just carries on saying running and my site doesnt close down. The only way i can close my site down is if i stop the processes in task manager.

If i leave apache on for about a day it suddenly stops working for no reason. My server doesnt crash because everything else works fine. The apache processs is still loaded in the task manager and it still says running on the control panel but for some reason i still cant load my site up. I have to stop the processes in task manager and then start it back up in the control panel for it to work again.

Please somebody help me

PostPosted: 06. June 2005 09:47
by bobobo
2 Processes are ok for Apache.

If Apache & Co is installed as service the control-panel always show a RUNNING after hitting the refresh.


For casually hangs of Apache you can restart Apache, Mysql ,... with using of some restart-batchfiles (take the stop and start batches as hint how to do a apache restart by batch) placed in the scheduler with suitable scheduled times.

PostPosted: 07. June 2005 07:54
by Bidybag
So the only way i can make apache work all the time is if i make it restart everyday?

What if the server is down or nobody is logged on at the time it runs the batch file? Will it run it when the server boots back up?

PostPosted: 07. June 2005 17:39
by Bidybag
Well i use apache_stop.bat in xampp folder and apache still works. So i can use a batch file to make it stop and start.

Can somebody help me?

PostPosted: 07. June 2005 17:48
by Dave_L
Are there any relevant messages in the Apache error or access logs (apache/logs/error.log, apache/logs/access.log), or the Windows event log?

PostPosted: 07. June 2005 20:58
by Bidybag
No because apache does not crash. It stays loaded but it like goes to sleep when it wants to and my site stops working.

PostPosted: 08. June 2005 17:15
by Bidybag
...

PostPosted: 08. June 2005 21:30
by Bidybag
Ok i think this might mean something. I got it from my apache error log file:

[712] EACCELERATOR: PHP crashed on opline 1 of main() at C:\apachefriends\xampp\xampp\htdocs\skin_cache\cacheid_2\skin_stats.php:0

[Wed Jun 08 21:19:58 2005] [error] Parent: child process exited with status 3 -- Aborting.
[Wed Jun 08 21:20:01 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4 mod_ssl/2.0.53 OpenSSL/0.9.7f mod_perl/1.999.21 Perl/v5.8.6 configured -- resuming normal operations
[Wed Jun 08 21:20:01 2005] [notice] Server built: Apr 8 2005 10:55:39
[Wed Jun 08 21:20:01 2005] [notice] Parent: Created child process 2860
[Wed Jun 08 21:20:09 2005] [notice] Child 2860: Child process is running
[Wed Jun 08 21:20:09 2005] [notice] Child 2860: Acquired the start mutex.
[Wed Jun 08 21:20:09 2005] [notice] Child 2860: Starting 250 worker threads.
[Wed Jun 08 21:25:43 2005] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Jun 08 21:25:44 2005] [notice] Child 2860: Exit event signaled. Child process is ending.
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: Released the start mutex
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: Waiting for 0 worker threads to exit.
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: All worker threads have exited.
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: Child process is exiting
[Wed Jun 08 21:26:13 2005] [notice] Parent: Forcing termination of child process 452
[Wed Jun 08 21:26:26 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4 mod_ssl/2.0.53 OpenSSL/0.9.7f mod_perl/1.999.21 Perl/v5.8.6 configured -- resuming normal operations
[Wed Jun 08 21:26:26 2005] [notice] Server built: Apr 8 2005 10:55:39
[Wed Jun 08 21:26:26 2005] [notice] Parent: Created child process 2140
[Wed Jun 08 21:26:34 2005] [notice] Child 2140: Child process is running
[Wed Jun 08 21:26:34 2005] [notice] Child 2140: Acquired the start mutex.
[Wed Jun 08 21:26:34 2005] [notice] Child 2140: Starting 250 worker threads.

PostPosted: 11. June 2005 02:56
by scebbrell
When you run Apache as a service if you stop the service eaccelerator gives a memory access error, there is obviously a problem with it.
Comment out the eaccelerator lines at the bottom of the php.ini file and see if that solves your problem.
Hopefully a fix will appear in a later version.

PostPosted: 13. September 2005 20:24
by Gurney
I've the same problem... Apache stops working after a few days.

Any solution yet ? I'm running gallery, and eAccelerator is quite useful for this application, and it would be a shame to desactivate it ^^...

Thanks.