Why is apache crashing?

Linode Staff

We have troubles with the server down in the last 3-4 days. Opening the graph, we see the change in the CPU/Traffic load which double from previous 7-8% to 13-14%. But that's relatively small and shouldn't cause the server down.

I'm running Apache, PHP-FPM, MariaDB. And when server down, Apache is off. I have to ssh and restart Apache again.

FYI: to have a better performance, I've just upgraded PHP from 7.0 to 7.3. The Ubuntu version is still 16.04 LTS.

1 Reply

I'd agree that a slight increase in CPU usage is probably not the problem here.

From the symptoms you are describing, my guess is that this may be due to either your Linode running out of memory, or an Apache configuration issue.

I'd suggest the following:

  1. Monitor your memory usage. If your server is running out of memory, it may shut down processes unexpectedly. Something like free -m is a good place to start, though the linked guide above has a few more helpful commands.

  2. Run the Apache2 optimizer. If Apache is shutting down unexpectedly, then it may be a configuration issue. Tuning its configuration should result in better performance.

  3. Review the Apache log: If apache is being shutdown, you should be able to locate an error message that provides so more helpful information. If this occurs again, I'd suggest taking a look at the last output of /var/log/apache2/error.log to see if it sheds more light on why this is occurring.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct