Dear Monks,

I have discovered that there can be a problem restarting Apache 2.2.6 on Windows when mod_perl is installed. If you run "httpd -k restart", Apache can fail to start and produce the following type of errors in the Apache error.log:

[Wed Jan 02 10:26:41 2008] [crit] (OS 10106)The requested service prov +ider could not be loaded or initialized. : alloc_listener: failed to + get a socket for (null) Syntax error on line 53 of C:/Apache2/conf/httpd.conf: Listen setup failed [Wed Jan 02 14:06:25 2008] [crit] (OS 6)The handle is invalid. : mast +er_main: create child process failed. Exiting.
In my case, line 53 (cited in the error above) was simply: "Listen 80", which was working fine prior to the attempted restart.

After consulting on www.apachelounge.com, I learned that this a recently reported mod_perl bug.

One workaround is to use "httpd –k stop" followed by "httpd –k start" rather than "httpd -k restart". This approach resolved the problem for me.

Hope this helps.

memnoch

Update: I decided to post this because it was not at all obvious from the error (at least to me) that the problem was a bug in "httpd -k restart". It looked more like a configuration issue, which had me on a wild-web goose chase for a while.
  • Comment on Problem restarting Apache 2.2.6 on Windows when mod_perl is installed
  • Download Code

Replies are listed 'Best First'.
Re: Problem restarting Apache 2.2.6 on Windows when mod_perl is installed
by Burak (Chaplain) on Jan 02, 2008 at 22:37 UTC
    I've experienced some weird issues with 2.2.6 and read some comments about 2.2.6 being buggy and/or incomapatible with mod_perl2. So, downgraded to Apache 2.2.4 instead until 2.2.8 (or some other new version) is out...