apache problems
I can't get my apache to start through webmin or anything else. I get this error.
Failed to start apache : Apache does not appear to be running : Starting httpd2: httpd2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (98)Address already in use: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs [FAILED] How do I fix it or what do I change? Also, when it worked before I messed something up. It gave me 403 error when I tried to open a file through localhost |
You've already got something listening on port 80 (possibly another instance of apache)
check the output of netstat -an (netstat -an | grep LISTEN) and see whats bound to :80 first and kill it. Then you should be able to start apache. |
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::6000 :::* LISTEN tcp 0 0 :::443 :::* LISTEN unix 2 [ ACC ] STREAM LISTENING 8439 /tmp/.ICE-unix/4525 unix 2 [ ACC ] STREAM LISTENING 53590 /tmp/ksocket-rad/amarok.visualization_soc thats what I got on port 80. How do I kill it? |
try "lsof -i :80" to see what program is listening....
Once you get that (the first column of output will be the process name) you can "killall processname" (killall httpd for instance) |
It worked!:)
Thanks alot, Rohmanovich |
All times are GMT -5. The time now is 09:15 AM. |