Apache error – (13)Permission denied: make_sock: could not bind to address
I hit the Apache server error (13)Permission denied: make_sock in my console, while i try to start the Apache http server with the ./apache2 start script under init.d folder.
mkyong@mkyong-desktop:/etc/init.d$ ./apache2 start * Starting web server apache2 apache2: Could not reliably determine the server fully qualified domain name, using 127.0.0.1 for ServerName (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
The description is indicate that i do not have enough privileged to bind the port for Apache http server. In Unix / Linux, only some privileged users are allow to bind the port between 1 to 1024. Apache http server is using port 80 as default.
Solution
To solve this problem, there are two common ways
1) sudo to root
, or contact your administrator to grant you the privileged.
mkyong@mkyong-desktop:/etc/init.d$ sudo ./apache2 start
2) Edit the config file to change the port Apache uses to a number greater than 1024.


