Does anyone know of a script that will check apache every so many minutes and if it's down will automatically restart it? Apache keeps crashing on my server and I don't know why. If you restart it is fine but it might die again within the next 24hrs. Until I can sort this out I need a script to restart it for me. Any ideas?
are you using any control panel? Try to install this useful application. http://rfxnetworks.com/sim.php
Oh my I just looked and it appears that the error_log file is 226mb. I guess I'm looking at the right one. It's under /etc/httpd/logs. WHM/CPanel is installed on the server.
Yeah something with ur installation got wrong. But funny that you ask for a script to restart it rather than how to fix it that it won't crash.
LOL.... yeah I figured it would be easier to install a script as a temporary work around until I could actually solve the problem. So where do I go from here? It has been fine for several months and just started doing this recently since I added on a couple more vbulletin sites.
How is your memory usage ? Take snapshots of memory usage every 1 hour in peak hours ( 6 am to 6 pm) as possible and see if you are running out of memory This causes apache to crash