[ka-Map-users] Premature end of script headers: php-cgi.exe

Christopher Schmidt crschmidt at crschmidt.net
Wed Apr 4 18:56:19 EDT 2007


On Wed, Apr 04, 2007 at 05:23:41PM -0500, Jeff Dege wrote:
> I'm using Ka-Map.  I'm running a batchfile to precache the tiles, that
> makes calls to wget, to grab URLs.  Example command line:
> 
> wget.exe
> "http://localhost:8080/latlongedit/tile.php?map=socal&g=all&i=gif&t=-896
> 00&l=-294400&s=125000" -O t.gif
> 
> The batchfile contains thousands of lines, each containing a distinct
> t=, l=, and s=.
> (I have a program that generates these, from a set of commandline
> parameters.)
> 
> The problem is that things are failing.  It will run through thousands
> correctly, then it will hang, then fail with an HTTP Error 500 -
> Internal server error.
> 
> Checking \ms4w\apache\logs\error.log, I see:
> 
> [error] [client 127.0.0.1] Premature end of script headers: php-cgi.exe
> 
> This is running the MS4w Mapserver/Apache install on Windows.

Sounds like you might be hitting a timeout in the apache server: timeout
is probably 5 minutes (300 seconds) by default.

Can't explain to you *why* that is, but that's the symptom you're
describing.

Regards,
-- 
Christopher Schmidt
Web Developer


More information about the ka-Map-users mailing list