I have an Apache/PHP/MySQL server setup on a droplet, and sometimes the server will “go down” and the sites will time out in a browser.
Restarting Apache resolves the issue for the time being, but I did that last night only to find the site down again this morning (so I rebooted Linux), so I’m concerned.
I found a 3rd party service that lets me know when this happens, but I can’t always be there to restart the system.
The general Apache error log did not show anything out of the ordinary as far as I can tell. I know enough to be dangerous on Linux as long as I can Google things, but this is beyond me.
I spent a lot of time tightening security, and while I have seen dozens of hack attempts a minute within the first hour of the server going up, I’m fairly sure it’s reasonably locked up.
What steps can you recommend I take to track down this issue?
Are there any tools I can use to automatically restart apache when there’s an issue?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!