Failure - why sudo systemctl restart apache2

I keep getting this. I've deleted 3 Linodes today because of it. Can anybody tell me what's going on. This Linode is Ubuntu but also had it on Debian.

$ sudo systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.

2 Replies

There are several potential causes for Apache to be unable to restart. You'll need to use the command systemctl status apache2.service for more information about why the service could not be started; your Apache error log and journalctl -xe should have additional information as well. Depending on which error prevented Apache from restarting, you may want to review our guide to troubleshooting Apache as well.

Most likely there's a bug in your apache2 configuration. You can check this with

sudo apachectl -t

-- sw

Reply

Please enter an answer
Tips:

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