After upgrading to macOS Sierra
my apache doesn't start.
Where it goes the apache error_log
:
AH00112: Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
AH00557: httpd: apr_sockaddr_info_get() failed for username.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 (13)Permission denied:
AH00072: make_sock: could not bind to address [::]:80 (13)Permission denied:
AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down*
I already follow these instructions without success: http://digitalshore.io/local-web-development-environment-apache-macos-sierra-10-12/
An Apache AH00072: make_sock: could not bind to address error message is generated when there is another process listening on the same port that Apache is configured to use. Typically the port will be the standard port 80 for HTTP connections, or port 443 for HTTPS connections.
The error is because of port conflict. The Apache is trying to start on port 80, however the port 80 is being used or blocked by another application or server. When two or more applications are trying to use the same port its called as port conflict. Check the process that is using the port 80.
For first 2 comment dummy host setting in
httpd-vhosts.conf
For 3,4 uncomment ServerName and assign value in
httpd.conf
ex: ServerName local_server:80
And add the same value in /etc/hosts to access by server name.
5,6 because port 80 is used by other application
sudo lsof -i:80
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With