This question already has an answer here:
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:
But that error doesn't disappear!
How can I fix this problem?