View previous topic :: View next topic |
Author |
Message |
Canadian Chris n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 22 Location: Nanaimo
|
Posted: Fri Oct 17, 2003 11:42 pm Post subject: Starting Apache... |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Sat Oct 18, 2003 5:30 am Post subject: |
|
|
Do you have the ipv6 use flag set? Are you using ipv6 sockets? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Canadian Chris n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 22 Location: Nanaimo
|
Posted: Sat Oct 18, 2003 5:48 am Post subject: |
|
|
I'm not sure ![Embarassed :oops:](images/smiles/icon_redface.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Sat Oct 18, 2003 7:04 am Post subject: |
|
|
Did you make any changes to the Apache config files? Can you start it without SSL or PHP4? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Canadian Chris n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 22 Location: Nanaimo
|
Posted: Sat Oct 18, 2003 4:12 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Canadian Chris n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 22 Location: Nanaimo
|
Posted: Sat Oct 18, 2003 5:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Sat Oct 18, 2003 6:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Canadian Chris n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 22 Location: Nanaimo
|
Posted: Sat Oct 18, 2003 7:10 pm Post subject: |
|
|
alright, thx anyways |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
celloandy Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 29 Jan 2003 Posts: 113 Location: Washington, DC
|
Posted: Mon Oct 20, 2003 12:53 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Mon Oct 20, 2003 4:14 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
celloandy Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 29 Jan 2003 Posts: 113 Location: Washington, DC
|
Posted: Mon Oct 20, 2003 5:19 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Old Wolf n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Oct 2003 Posts: 9 Location: North West England
|
Posted: Tue Oct 21, 2003 8:35 pm Post subject: Re: Starting Apache... |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Old Wolf n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Oct 2003 Posts: 9 Location: North West England
|
Posted: Wed Oct 22, 2003 1:23 pm Post subject: |
|
|
Does anyone have any idea's how to solve this? I really need to get apache working... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Old Wolf n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Oct 2003 Posts: 9 Location: North West England
|
Posted: Wed Oct 22, 2003 3:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Wed Oct 22, 2003 4:27 pm Post subject: |
|
|
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: |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Old Wolf n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Oct 2003 Posts: 9 Location: North West England
|
Posted: Wed Oct 22, 2003 5:25 pm Post subject: |
|
|
BitJam wrote: | You could probably play the same trick on the /etc/apache2/modules.d/40_mod_ssl.conf file that contains the line: |
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 |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Wed Oct 22, 2003 5:58 pm Post subject: |
|
|
Old Wolf wrote: | Well, on my box it was here: /etc/apache2/conf/modules.d/40_mod_ssl.conf |
My bad. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Canadian Chris n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 22 Location: Nanaimo
|
Posted: Fri Oct 24, 2003 11:10 pm Post subject: |
|
|
Just on a note, YOU RULE! Mine works too now.
Hype hype hype ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tukak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Oct 2003 Posts: 17
|
Posted: Sun Oct 26, 2003 7:55 pm Post subject: |
|
|
works for me too, thank you very much ![Smile :-)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stormer Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/135484894140d75cab940de.jpg)
Joined: 20 May 2002 Posts: 122 Location: Canada
|
Posted: Wed Oct 29, 2003 3:04 pm Post subject: Thanks! |
|
|
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 ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Wed Oct 29, 2003 3:14 pm Post subject: Re: Thanks! |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
joker0225 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Sep 2003 Posts: 8 Location: Mesa
|
Posted: Thu Oct 30, 2003 12:11 am Post subject: It worked for me too.... |
|
|
Thanks!!!!!!!!!!!!!!! ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Thu Oct 30, 2003 10:26 pm Post subject: |
|
|
Thanks everyone! The 0.0.0.0:[port] thingie helped on my machine as well!
But(t)... what made it break in the first place...? ![Question :?:](images/smiles/icon_question.gif) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sveini Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/16800416453fc387b84440c.gif)
Joined: 31 Oct 2003 Posts: 80
|
Posted: Fri Oct 31, 2003 8:32 pm Post subject: |
|
|
meulie wrote: | Thanks everyone! The 0.0.0.0:[port] thingie helped on my machine as well!
But(t)... what made it break in the first place...? ![Question :?:](images/smiles/icon_question.gif) |
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... ![Smile :)](images/smiles/icon_smile.gif) _________________ Magnus frater spectat te! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BitJam Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Fri Oct 31, 2003 8:45 pm Post subject: |
|
|
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... ![Smile :)](images/smiles/icon_smile.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
|