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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.