Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
111
rated 0 times [  111] [ 0]  / answers: 1 / hits: 327627  / 2 Years ago, fri, september 16, 2022, 10:56:02

I'm trying to restart Apache 2:



sudo service apache2 restart


But get the below error:



* Restarting web server apache2 

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.

Set the 'ServerName' directive globally to suppress this message


I've tried to change



sudo gedit /etc/apache2/httpd.conf


A blank file appears, and I'd added this:



ServerName localhost


But that error doesn't disappear!



How can I fix this problem?


More From » apache2

 Answers
5

I found this: How do I restart/reload Apache when it can't determine the domain name?




Good news! Apache is restarting successfully. Apache just isn't sure
where you want serve from, so it's choosing your localhost (127.0.0.1)
by default. To prevent this message from appearing, clarify that you
want to serve from localhost (127.0.0.1) by adding the following line
into your /etc/apache2/apache2.conf file:



ServerName localhost


[#30059] Saturday, September 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
looweets

Total Points: 52
Total Questions: 114
Total Answers: 111

Location: Turkmenistan
Member since Sat, Apr 16, 2022
2 Years ago
;