• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
9 views

Problem :

I have installed the fresh copy of the Centos 7. Then I just restarted Apache but my Apache failed to start. I am stuck with the bellow error from past 5 days. Even my support could not figure out the below error.

sudo service httpd start

Failed to start apache :
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2020-01-04 16:08:02 BST; 59s ago
   Docs: man:httpd(8)
   man:apachectl(8)
Main PID: 5710 (code=exited, status=1/FAILURE)

Jan 04 16:08:02 mike079.startdedicated.de systemd[1]: Starting The Apache HTTP Server...
Jan 04 16:08:02 mike079.startdedicated.de httpd[5710]: (98)Address already in use: AH00072: make_sock: could not bind to address 85.25.12.20:xx
Jan 04 16:08:02 startdedicated.de httpd[5710]: no listening sockets available, shutting down

 

by (7.5k points)  

1 Answer

0 votes

Solution :

From your above error:

“no listening sockets available, shutting down”

What basically it means, that if any port in which one of the apache is going to be listening is already occupied by some other application.

netstat -punta | grep LISTEN

Above command will give you the list of all your ports being used and its information needed to recognize which process is this so that you can kill stop or do According to your need with it.

This will help you in resolving your error.

by (33.3k points)  
...