Skip to content
Advertisement

Failed to start httpd server: Address already in use

Surely I know that same question is already posted here. However, when I searched it, the status is different from mine and I cannot understand the answers. Therefore I post my problem here. Sorry for duplicating issues.

My homepage suddenly doesn’t work and I found out that it failed to start httpd service. Following image is the result when I command ‘sudo service httpd start’

Starting httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs [FAILED]

restart doesn’t work also.

$ sudo service httpd restart
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs [FAILED]

What should I do to restart httpd service and revive my homepage?

Advertisement

Answer

Error 98 usually occurs when some webserver is using the port, here 80, or The clean release port/address was not done.

If port is being used by other webserver, shutdown the server. You can find out which service is using port 80 by

JavaScript

and then shutdown the service.

If the port was not released upon unclean shutdown of server, then

JavaScript

to release address/port combination from bind. This usually fixes error 98 for me.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement