We have MapServer running in two different configurations on Windows.
Configuration 1 is based on a Typo3 installation of Apache 2.055 and PHP 5.0.5, and we have then added PostGIS and the matching version of MapServer. This works fast and well.
Configuration 2 is based on a MS4W installation of Apache 2.2.4 and PHP 5.2.3, and we have then added PostGIS and the matching version of MapServer. This gives 5 seconds timeout whenever a script output is not supplied with at header specifying the Content-Length. It is of course possible to specify Content-Length in our own PHP scripts, but the problem also exists in processes we have no control over, for instance MapServers requests for WMS images and WFS data.
We have tried changing a lot of settings in the Apache httpd.conf, but nothing has helped. Does anybody know a solution?