Apache on MacOS Sierra: AH00557: httpd: apr_sockaddr_info_get() failed for Macbook-Pro.local AH00558: httpd: Could not reliably determine… I updated MacOS Sierra's Apache and PHP, and now whenever I $ sudo apachectl restart I get this:

AH00557: httpd: apr_sockaddr_info_get() failed for My-MacBook-Pro.local
AH00558: httpd: Could not reliably determine the server's fully qualified
domain name, using 127.0.0.1. Set the 'ServerName' directive globally to
suppress this message


Things I've tried so far that didn't work:


Setting ServerName localhost in /etc/httpd.conf
Setting ServerName localhost:80 in /etc/httpd.conf
Setting ServerName 127.0.0.1 in /etc/httpd.conf
Setting ServerName 127.0.0.1:80 in /etc/httpd.conf
Ensuring 127.0.0.1       localhost is set in /etc/hosts
Repeatedly restarting Apache
When restart the httpd.

Try:

sudo /usr/sbin/apachectl restart


Don't use:

sudo apachectl restart