Sunday, September 26, 2010

Essential Configuration Settings for Apache on Windows

This came up a couple of times on mailing lists recently, and since it's something I sometimes forget to do when I set up new Windows servers with Apache, I figured I'd document it here.

If you're running into stability problems with Apache on Windows and can't switch to Linux, doing the following seems to help quite a bit.

First, find these lines in your httpd.conf file and uncomment them:
EnableMMAP off
EnableSendfile off

Then right below those lines, add this line:

Particularly if you're seeing errors along the lines of "The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed" or "The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed" that last line should eliminate those errors.

If you're interested in learning more about what's behind these errors, there's a nice post about it on the "My Digital Life" blog.

No comments: