Apache 2 Not Working

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

1 Reply

If Apache did not properly restart, you'll likely be able to gain more insight from 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 use this command to view the most recent entries in real-time (replace this path with the location of your error log file):

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

While the Apache logs are a great resource when troubleshooting issues with your web server, they're sometimes difficult to decipher. This document on Apache's website can help you read entries from your log files, and it also describes how to configure Apache's various logging capabilities.

You might also want to review our Troubleshooting Common Apache Issues guide and Apache's documentation. I hope this helps!

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