Skip to main content

Apache restarting every 5 minutes

Comments

4 comments

  • medievil2003
    To add, just today the server restarted 117 times, found out by using the command: cat /usr/local/apache/logs/error_log|grep restart |grep "May 25"|wc -l
    0
  • webhostuk
    Hello, Have you tried recompiling apache ? I found some useful info on internet you try below : Verify The Issue Make sure you can reproduce the issue reliably. Running "apache graceful" should trigger it to crash. If not then there is another cause for this symptom which is not covered in this article (leave a note if you know of anything else that triggers this). Check Apache First, comment out the PHP module line(s) in httpd.conf (ie; turn off PHP loading) to see if the issue is inside the Apache, PHP or other modules. STILL CRASHES: If it still crashes when you "apache graceful" then the problem is within Apache or another module being loaded. Usually recompliling Apache will fix this. DOESN'T CRASH: It's time to look at the PHP modules or the core itself (see below). Check PHP's Modules Comment out all the lines inside your extensions.ini file (add semicolons (;) in front of each line) and try gracefully restarting. STILL CRASHES: If Apache still crashes then the PHP core itself is the issue, recompiling it should fix it (which might mean you now need to recompile all the modules as well because you have a new core). DOESN'T CRASH: If Apache doesn't crash anymore then the problem is one of the modules. One by one uncomment them until you isolate which one. Recompiling it should fix the issue.
    0
  • medievil2003
    Hi, thanks for your reply. I'm recompling apache now, i'm using the same config settings so not sure it'll make a huge amount of difference but of course its worth a shot. With the modules, i disabled every module that was running within magento previously but that made no difference. Can i ask, does recompiling apache also recompile php?
    0
  • cPanelMichael
    Hello, Are you using EasyApache to rebuild Apache? If so, yes, it also rebuilds PHP. Have you considered upgrading to Apache 2.4? Thank you.
    0

Please sign in to leave a comment.