Hi there. was wondering if you could help me with this error i am getting. i have a server which i installed apache web server. usually when i restart or reboot the server the htppd service does not automatically come on or start at boot up. so i have to manually get it started. after some troubleshooting, i found out that its not automatically coming on because there is an error during boot up for the httpd service. so finally i figured out how to manualy start the httpd service by using the/etc/init.d/httpd restart command. so i logged in to my server using my SSH account that you gave me. so this is when i noticed the error saying:
Starting httpd: (98)Address already in use: make_sock: could not bind to address
can anyone tell me what this error means?
# /etc/init.d/httpd restart Stopping httpd: [ OK ] 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
but when i did it again, i was able to get my httpd apache server to restar, but i was just wondering what this mean?
thanks
----------------------
please try this command
netstat -lnp | grep 0.0.0.0:80
if any of the process are running, kill it using the commmand,
kill -9 pid.
that should fix.
------------------------------
this will truly fix your problem, just run these 4 commands
# for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done
# for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done
# for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done
# service httpd restart
0 comments:
Post a Comment