Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems getting apache-2.2.24-r1 started -- RESOLVED
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
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Tue Jul 02, 2013 5:52 am    Post subject: Problems getting apache-2.2.24-r1 started -- RESOLVED Reply with quote

Lots of people seem to be getting a message like
Quote:
* Starting apache2 ...
(98)Address already in use: make_sock: could not bind to address 216.86.203.11:80
no listening sockets available, shutting down
Unable to open logs
For most people it seems that , netstat -ltnp shows something else using ":80", but that is not the case for me. The address 216.86.203.11:80 is the one I want apache to listen on. Before I added "Listen 0.0.0.0:80" in httpd.conf, the message was complaining that it could not bind to address 0.0.0.0:80. Rebooting does not fix the problem. In case it would be useful, "ip a |grep 216.86.203.11" gives
Quote:
inet 216.86.203.11/24 brd 216.86.203.11 scope global eth0

All this after an aborted attempt to install apache-2.4.4-r3. I'm now back to apache-2.2.24-r1, which used to work. What to do?? Thanks,
Fred


Last edited by Fred Krogh on Wed Jul 03, 2013 12:24 am; edited 2 times in total
Back to top
View user's profile Send private message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Tue Jul 02, 2013 8:47 pm    Post subject: Reply with quote

"Listen 0.0.0.0:80"
"Listen 216.86.203.11:80"

in httpd.conf,
should work i guess ;) (untested, switched to nginx ;) )
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Tue Jul 02, 2013 8:59 pm    Post subject: Reply with quote

Thanks for the thought. I finally got my index.html to load by removing all Listen commands. (Yes that seems weird to me too.) Now the code that runs the dynamic stuff won't work and even http://localhost/server-info doesn't work. (And that used to just fine.) I've been comparing my configuration files with those that I think used to work, and their are very few differences. Took out a couple of Listen's, and using mod_fcgid instead of mod_fastcgi. I guess going back to mod_fastcgi is the next step.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Wed Jul 03, 2013 12:15 am    Post subject: Reply with quote

After switching back to mod_fastcgi, all is working except for localhost/server-status, and localhost/server-info. If anyone knows how to cure that, I'd love to have your ideas. I have no idea why mod_fcgid would not work, nor why essentially this configuration was complaining about libmysqlclient.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Wed Jul 03, 2013 12:24 am    Post subject: Reply with quote

Sorry all is working. I just replaced Listen 216.86.203.11:80 in 00_default_vhost.conf with Listen 0.0.0.0:80 in httpd.conf.
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