Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AH00072: make_sock: could not bind to address [::]:80 (13)Permission denied

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/

like image 281
PSA Avatar asked Sep 27 '16 22:09

PSA


People also ask

Can't assign requested address Make_sock could not bind to address?

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.

Could not bind to address 80 Apache Windows?

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.


1 Answers

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

like image 187
Naga Penmetsa Avatar answered Oct 15 '22 20:10

Naga Penmetsa