'error AH00558: httpd: Could not reliably determine the server's fully qualified domain name

when i try to do sudo apachectl start

it return this error

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Dava-Erandas-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message

what i've done is

adding a line containing ServerName 127.0.0.1 in /etc/apache2/apache2.conf

base on this link https://www.digitalocean.com/community/tutorials/apache-configuration-error-ah00558-could-not-reliably-determine-the-server-s-fully-qualified-domain-name

but it still returning the same error.

what should i do to get rid of this error?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source