Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache error at (re)starting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MaartenZz
n00b
n00b


Joined: 30 Sep 2004
Posts: 15

PostPosted: Sun Nov 07, 2004 9:54 pm    Post subject: Apache error at (re)starting Reply with quote

I'v read alot about errors at starting up Apache in these forums. The problem is that there is another program running on port 80. I think this is different in my case:

Quote:
Maryland root # /etc/init.d/apache2 status
* status: started
Maryland root # /etc/init.d/apache2 restart
* Stopping apache2... [ ok ]
* Starting apache2...
(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 [ !! ]

Maryland root #


After I kill the process, and start it manually, it sais it's started, but when I check it by going to my website, it doesn't work.

This went suddenly (for me ;-)). Can somebody give me advise on how to fix this?
(After this error i've updated to apache-2.0.52-r1 but this doesn't help.)
Thank you very much.
Back to top
View user's profile Send private message
dsegel
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2003
Posts: 127

PostPosted: Mon Nov 08, 2004 12:38 am    Post subject: Reply with quote

Stop apache, kill the process, make sure it's really dead and then do a

netstat -an | grep 80

if you get something like

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN

then you have some other server running on port 80. Try a 'ps ax' to see if you can figure out what it is.

If the netstat command produces no output, try changing the LISTEN section of your apache.conf to 8080 or something like that and see if it works that way. In fact, even if netstat does show some other server on port 80 you could try this. Check http://localhost:8080 to try it out.
Back to top
View user's profile Send private message
MaartenZz
n00b
n00b


Joined: 30 Sep 2004
Posts: 15

PostPosted: Tue Jan 11, 2005 2:09 am    Post subject: Reply with quote

Sorry for never answering.. it's works fine now, thnx anyway :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum