Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2 startup problems
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
damosoft
n00b
n00b


Joined: 25 Sep 2004
Posts: 26
Location: Cheshire, UK

PostPosted: Fri Oct 14, 2005 1:03 pm    Post subject: Apache 2 startup problems Reply with quote

Hey!

Strange one here. Im building a new box so all is fresh emerges.

apache2.0.54 emerged nicely without any errors.

Yet on startup 85% of the time I only see one apache2 process. and in error_log:

[Fri Oct 14 14:00:31 2005] [notice] Digest: generating secret for digest authentication ...

where it hangs forever.

If I comment out "mod_auth_digest shared" in /etc/apache2/apache2-bultin-mods it seems to startup and continue fine:

[Fri Oct 14 14:03:40 2005] [notice] Digest: generating secret for digest authentication ...
[Fri Oct 14 14:03:40 2005] [notice] Digest: done
[Fri Oct 14 14:03:40 2005] [notice] Apache configured -- resuming normal operations

Whats the prob?

Cheers
_________________
Damian
Back to top
View user's profile Send private message
itsmegawtf
Apprentice
Apprentice


Joined: 01 Oct 2005
Posts: 150

PostPosted: Fri Oct 14, 2005 3:20 pm    Post subject: Reply with quote

http://httpd.apache.org/docs/2.0/mod/mod_auth_digest.html
Back to top
View user's profile Send private message
snowpatch
n00b
n00b


Joined: 09 Mar 2003
Posts: 38
Location: Philadelphia

PostPosted: Sat Oct 15, 2005 2:46 am    Post subject: Reply with quote

I had a very similar problem: apache would say it was started, but not serve pages. It was waiting on the digest to complete. This is over ssh. If I restarted apache, logged out of my ssh session, then back in, apache would finish the generating the digest secret. Turns out that it has to do with entropy (lack of). See https://forums.gentoo.org/viewtopic-t-384660.html and especially https://forums.gentoo.org/viewtopic-t-151105-highlight-authdigestmodule.html

The thing that solved it for me was re-emerging apache as so:
MY_BUILTINS="--with-devrandom=/dev/urandom" emerge apache
Back to top
View user's profile Send private message
damosoft
n00b
n00b


Joined: 25 Sep 2004
Posts: 26
Location: Cheshire, UK

PostPosted: Sat Oct 15, 2005 7:35 am    Post subject: Reply with quote

Thanks snow.

For now its quite happy with that commented out. I need to build another server now but I have more time to play on this one so I will check this and then if ok will do the same on the opne showing the problems.

Thanks for the advice!
_________________
Damian
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