LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache problems (https://www.linuxquestions.org/questions/linux-newbie-8/apache-problems-310421/)

rohmanovich 04-06-2005 12:56 PM

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

zeos 04-06-2005 01:02 PM

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.

rohmanovich 04-06-2005 01:09 PM

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?

zeos 04-06-2005 01:26 PM

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)

rohmanovich 04-06-2005 01:55 PM

It worked!:)

Thanks alot,
Rohmanovich


All times are GMT -5. The time now is 09:15 AM.