Apache automatically stopped working, and unable to be restarted

Hi
Hope you’re doing good

I have around 15 different Ubuntu 22.04.4 LTS servers in different locations across the world, all running HestiaCP 1.8.11
(nothing custom, all default settings)

Apache stopped working on all of them at the same time
(there was no development activity going on at that time)
[Internal Server Error; Oops! Something went wrong; The server encountered an internal error or misconfiguration and was unable to complete your request; Error Code: 500]

Around 2 hours after being notified, I attempted to restart all the servers, but no success

Then I attempted to restart apache, but no success
[It says “Error: ERROR: Restart of apache2 failed”]

Any advice on what the issue could be? And if anyone else facing the same issue?

I’m surprised because I wasn’t logged into the server, I didn’t change any files, I didn’t update anything etc, and all of the different servers stopped working at the same time.

Hi @ahmed,

That looks weird.

Apache has been updated recently, if you have automatic updates maybe that could cause some issue…

Check the service status and check the config too.

apache2ctl configtest
systemctl status apache2 --no-pager -l
2 Likes

When I ran “apache2ctl configtest”, I got:

Command 'apache2ctl' not found, but can be installed with:
apt install apache2

I have no idea why I needed to install apache2 again, but it is working fine now! Thanks!

1 Like