Unfortunately the apache server has been stopped and it could not start in your server just follow the below solution,
# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
Check your httpd error_log using tail command,
# tail -f /var/log/httpd/error_log
[Sun Sep 14 02:10:12 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 14 02:10:12 2014] [notice] Digest: done
[Sun Sep 14 02:10:12 2014] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun Sep 14 02:10:12 2014] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
To find your apache (httpd) port listening on network by netstat command,
# netstat -anp | grep 80
tcp 0 0 192.168.0.1:80 192.168.0.1:48814 SYN_RECV -
tcp 0 0 192.168.0.1:80 192.168.0.25:56469 SYN_RECV -
tcp 0 0 :::80 :::* LISTEN 29939/whois
Terminate the process id (PID),
# kill -9 29939
# netstat -anp | grep 80
# netstat -anp | grep 80
Start your apache server,
# /etc/init.d/httpd start
Starting httpd: [ OK ]
# netstat -anp | grep 80
tcp 0 0 192.168.0.1:80 220.255.2.201:1048 SYN_RECV -
tcp 0 0 :::80 :::* LISTEN 19373/httpd
tcp 0 0 ::ffff:192.168.0.1:80 ::ffff:192.168.0.100:54053 ESTABLISHED 19380/httpd
tcp 0 0 ::ffff:192.168.0.1:80 ::ffff:192.168.0.100:40055 ESTABLISHED 19382/httpd
Comments (0)