Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting Apache...
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Canadian Chris
n00b
n00b


Joined: 01 Oct 2003
Posts: 22
Location: Nanaimo

PostPosted: Fri Oct 17, 2003 11:42 pm    Post subject: Starting Apache... Reply with quote

Just emerged apache, mod_php, and mysql....after doing tweaking to the apache config file (adding the APACHE2_OPTS="-D SSL -D PHP4") I'm getting this error:

Code:

 * Starting apache2...
[Fri Oct 17 16:53:14 2003] [crit] (92)Protocol not available: make_sock: for address [::]:80, apr_socket_opt_set: (IPV6_V6ONLY)
no listening sockets available, shutting down
Unable to open logs
                                                                                                                      [ !! ]


What can I do to fix that? Thanks...
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Sat Oct 18, 2003 5:30 am    Post subject: Reply with quote

Do you have the ipv6 use flag set? Are you using ipv6 sockets?
Back to top
View user's profile Send private message
Canadian Chris
n00b
n00b


Joined: 01 Oct 2003
Posts: 22
Location: Nanaimo

PostPosted: Sat Oct 18, 2003 5:48 am    Post subject: Reply with quote

I'm not sure :oops:
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Sat Oct 18, 2003 7:04 am    Post subject: Reply with quote

Did you make any changes to the Apache config files? Can you start it without SSL or PHP4?
Back to top
View user's profile Send private message
Canadian Chris
n00b
n00b


Joined: 01 Oct 2003
Posts: 22
Location: Nanaimo

PostPosted: Sat Oct 18, 2003 4:12 pm    Post subject: Reply with quote

I had added

Code:

APACHE2_OPTS="-D SSL -D PHP4"


to /etc/conf.d/apache2, but even if I comment it out, I still get the same error message. (and hence can't run apache)

I tried re-emering apache and adding -ipv6 to my use flags, but that didn't help.


Last edited by Canadian Chris on Sat Oct 18, 2003 5:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Canadian Chris
n00b
n00b


Joined: 01 Oct 2003
Posts: 22
Location: Nanaimo

PostPosted: Sat Oct 18, 2003 5:33 pm    Post subject: Reply with quote

I will note that I messed up some of my /etc/ files a couple days back, so if there's some configuration that should be in one of those, it might be a problem.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Sat Oct 18, 2003 6:13 pm    Post subject: Reply with quote

I don't know how to solve your problem. The only suggestion I have is to look very closely at all of your (appropriate) /var/log/ files and the output of dmesg for more information about what is wrong.
Back to top
View user's profile Send private message
Canadian Chris
n00b
n00b


Joined: 01 Oct 2003
Posts: 22
Location: Nanaimo

PostPosted: Sat Oct 18, 2003 7:10 pm    Post subject: Reply with quote

alright, thx anyways
Back to top
View user's profile Send private message
celloandy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 113
Location: Washington, DC

PostPosted: Mon Oct 20, 2003 12:53 am    Post subject: Reply with quote

I'm having the same problem. Apache was working one day, then I did an "emerge -u world" and an "etc-update," and it died. Now it won't start.

Andrew
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Mon Oct 20, 2003 4:14 am    Post subject: Reply with quote

I emerged apache (2.0.47) four days ago (Oct 15th) and it started flawlessly with:
Code:
 APACHE2_OPTS="-D SSL -D RUBY"

But I haven't done an "emerge -up world" in a long time. There are 69 packages that are listed as needing an update. It is possible that one of these packages is causing your problem.

I can weed out most of them as irrelavant and am left with this short list:
Code:
 [ebuild     U ]sys-devel/gcc-3.2.3-r2 [3.2.3-r1]
[ebuild     U ] dev-libs/glib-2.2.3 [2.2.2]
[ebuild     U ] sys-apps/iproute-20010824-r4 [20010824-r3]
[ebuild     U ] sys-apps/tcp-wrappers-7.6-r6 [7.6-r4]
[ebuild     U ] net-nds/portmap-5b-r7 [5b-r6]
[ebuild  N    ] dev-libs/libmal-0.31


My bet would be that maybe it is iproute that is causing this problem. If you have the most recent version installed, you could try downgrading it and see if that fixes the problem.
Back to top
View user's profile Send private message
celloandy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 113
Location: Washington, DC

PostPosted: Mon Oct 20, 2003 5:19 am    Post subject: Reply with quote

The thing is, at least on my box, mysql and other server daemons are still functioning. I may give the iproute thing a try in a little while, but I suspect that the problem occured with the etc-update, and that I botched a config file accidently. Just a guess, though.

Andy
Back to top
View user's profile Send private message
Old Wolf
n00b
n00b


Joined: 19 Oct 2003
Posts: 9
Location: North West England

PostPosted: Tue Oct 21, 2003 8:35 pm    Post subject: Re: Starting Apache... Reply with quote

Canadian Chris wrote:
Just emerged apache, mod_php, and mysql....after doing tweaking to the apache config file (adding the APACHE2_OPTS="-D SSL -D PHP4") I'm getting this error:

Code:

 * Starting apache2...
[Fri Oct 17 16:53:14 2003] [crit] (92)Protocol not available: make_sock: for address [::]:80, apr_socket_opt_set: (IPV6_V6ONLY)
no listening sockets available, shutting down
Unable to open logs
                                                                                                                      [ !! ]


What can I do to fix that? Thanks...


I'm getting the exact same error as this, after emerging apache today. Anyone got any ideas, it's more than a little frustrating.
Back to top
View user's profile Send private message
Old Wolf
n00b
n00b


Joined: 19 Oct 2003
Posts: 9
Location: North West England

PostPosted: Wed Oct 22, 2003 1:23 pm    Post subject: Reply with quote

Does anyone have any idea's how to solve this? I really need to get apache working...
Back to top
View user's profile Send private message
Old Wolf
n00b
n00b


Joined: 19 Oct 2003
Posts: 9
Location: North West England

PostPosted: Wed Oct 22, 2003 3:36 pm    Post subject: Reply with quote

okokok - I found the answer out:

edit apache2.conf, and change Listen 80 to Listen 0.0.0.0:80, and edit /etc/conf.d/apache2 and take out -D SSL, and it should work. dunno how to get get SSL to work though...


Last edited by Old Wolf on Wed Oct 22, 2003 5:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Wed Oct 22, 2003 4:27 pm    Post subject: Reply with quote

Old Wolf wrote:
okokok - I found the answer out:

edit apache2.conf, and change Listen 80 to Listen 0.0.0.0:80, and edit /etc/init.d/apache2 and take out -D SSL, and it should work. dunno how to get get SSL to work though...


You could probably play the same trick on the /etc/apache2/modules.d/40_mod_ssl.conf file that contains the line:
Code:
 listen 443
Back to top
View user's profile Send private message
Old Wolf
n00b
n00b


Joined: 19 Oct 2003
Posts: 9
Location: North West England

PostPosted: Wed Oct 22, 2003 5:25 pm    Post subject: Reply with quote

BitJam wrote:
You could probably play the same trick on the /etc/apache2/modules.d/40_mod_ssl.conf file that contains the line:
Code:
 listen 443


Well, on my box it was here: /etc/apache2/conf/modules.d/40_mod_ssl.conf but it's still worked a treat!

Thanks for the help.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Wed Oct 22, 2003 5:58 pm    Post subject: Reply with quote

Old Wolf wrote:
Well, on my box it was here: /etc/apache2/conf/modules.d/40_mod_ssl.conf


My bad.
Back to top
View user's profile Send private message
Canadian Chris
n00b
n00b


Joined: 01 Oct 2003
Posts: 22
Location: Nanaimo

PostPosted: Fri Oct 24, 2003 11:10 pm    Post subject: Reply with quote

Just on a note, YOU RULE! Mine works too now.

Hype hype hype :D
Back to top
View user's profile Send private message
tukak
n00b
n00b


Joined: 19 Oct 2003
Posts: 17

PostPosted: Sun Oct 26, 2003 7:55 pm    Post subject: Reply with quote

works for me too, thank you very much :-)
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Wed Oct 29, 2003 3:04 pm    Post subject: Thanks! Reply with quote

This works perfect for ssl too!

p.s. I'm getting this, what should I change!
Code:
apache2: Could not determine the server's fully qualified domain name, using 192.168.2.11 for ServerName

_________________
Stormer :)
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Wed Oct 29, 2003 3:14 pm    Post subject: Re: Thanks! Reply with quote

stormer wrote:
This works perfect for ssl too!

p.s. I'm getting this, what should I change!
Code:
apache2: Could not determine the server's fully qualified domain name, using 192.168.2.11 for ServerName


Uncomment the the following line found in /etc/apache2/conf/apache2.conf and fill in the appropriate name:
Code:
#ServerName localhost
Back to top
View user's profile Send private message
joker0225
n00b
n00b


Joined: 03 Sep 2003
Posts: 8
Location: Mesa

PostPosted: Thu Oct 30, 2003 12:11 am    Post subject: It worked for me too.... Reply with quote

Thanks!!!!!!!!!!!!!!! :D :D :D
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Thu Oct 30, 2003 10:26 pm    Post subject: Reply with quote

Thanks everyone! The 0.0.0.0:[port] thingie helped on my machine as well! 8)


But(t)... what made it break in the first place...? :?:
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
sveini
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2003
Posts: 80

PostPosted: Fri Oct 31, 2003 8:32 pm    Post subject: Reply with quote

meulie wrote:
Thanks everyone! The 0.0.0.0:[port] thingie helped on my machine as well! 8)


But(t)... what made it break in the first place...? :?:


For some reason apache used ipv6 by default. If your computer isn't set up with ipv6, it fails trying to start apache.

By the use of 0.0.0.0:[port] you force apache to use ipv4 instead.

Thats why.. But why it is set up to use ipv6 is another story... :)
_________________
Magnus frater spectat te!
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Fri Oct 31, 2003 8:45 pm    Post subject: Reply with quote

sveini wrote:
For some reason apache used ipv6 by default. If your computer isn't set up with ipv6, it fails trying to start apache.

By the use of 0.0.0.0:[port] you force apache to use ipv4 instead.

Thats why.. But why it is set up to use ipv6 is another story... :)

Another wrinkle: I've got the most recent Apache2 installed and I don't have this problem nor do I have any ipv6 stuff enabled. I do have a problem stopping Apache via the init.d script but that is probably a separate issue.
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
Goto page 1, 2  Next
Page 1 of 2

 
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