Apache 2 Not Working

Linode Staff

I have tried to restart the service but it did not work. What should I do?

1 Reply

If Apache did not restart successfully, you'll likely be able to gain more insight by reviewing your Apache error logs. By default, these logs are typically located in the following directories:

Debian/Ubuntu:
/var/log/apache2/

Fedora/CentOS:
/var/log/httpd/

You can run the following command to view the most recent entries as the log grows (replace the path in this example with the location of your error log file):

sudo tail -f /var/log/apache2/error.log

This resource on Apache's website can help you review entries from your log files, and it also describes how to configure Apache's various logging capabilities.

Linode also maintains a fantastic guide on troubleshooting issues with Apache:

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