macosapache

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?


Solution

  • I found the problem in the comment section of the top rated answer here I had 2 installations of apache, the one that came with the system and the one I installed using brew install httpd Error disappeared when I run brew uninstall httpd