LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2005, 01:56 PM   #1
rohmanovich
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Rep: Reputation: 15
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
 
Old 04-06-2005, 02:02 PM   #2
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
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.
 
Old 04-06-2005, 02:09 PM   #3
rohmanovich
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Original Poster
Rep: Reputation: 15
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?
 
Old 04-06-2005, 02:26 PM   #4
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
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)
 
Old 04-06-2005, 02:55 PM   #5
rohmanovich
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Original Poster
Rep: Reputation: 15
It worked!

Thanks alot,
Rohmanovich
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Problems chadi Linux - General 8 12-27-2004 12:10 PM
Apache Problems hitman_et Linux - Software 3 12-07-2004 07:11 PM
apache problems root3d Linux - Software 5 03-08-2004 05:26 PM
Apache problems Joe826 Linux - Software 6 02-13-2004 07:23 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-10-2003 12:16 AM


All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration