View previous topic :: View next topic |
Author |
Message |
damosoft n00b


Joined: 25 Sep 2004 Posts: 26 Location: Cheshire, UK
|
Posted: Fri Oct 14, 2005 1:03 pm Post subject: Apache 2 startup problems |
|
|
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 |
|
 |
itsmegawtf Apprentice

Joined: 01 Oct 2005 Posts: 150
|
|
Back to top |
|
 |
snowpatch n00b

Joined: 09 Mar 2003 Posts: 38 Location: Philadelphia
|
Posted: Sat Oct 15, 2005 2:46 am Post subject: |
|
|
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 |
|
 |
damosoft n00b


Joined: 25 Sep 2004 Posts: 26 Location: Cheshire, UK
|
Posted: Sat Oct 15, 2005 7:35 am Post subject: |
|
|
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 |
|
 |
|