[mapserver-users] Couldn't run perl mapscript under Apache

krung krung at cad.go.th
Wed Nov 13 00:48:01 EST 2002


Lowell and Puneet,

I'd tried switch -w already, the same result. I suspect that my Apache has suexec enabled. It might cause the problem. I'll try to disable it but don't know how to now. I'll try with it.

Thank you very much for your help and patience.

Krung


---------- Original Message ----------------------------------
From: "Lowell Filak"<lfilak at medinaco.org>
Date:  Tue, 12 Nov 2002 08:32:35 -0500

>Okay.
>First problem solved.
>Now please try adding the -w switch to your script as Puneet has suggested and report what happens.
>Lowell F.
>
>The following message was sent by "krung" <krung at cad.go.th> on Tue, 12 Nov 2002 09:18:37 +0700.
>
>> Lowell,
>> 
>> If I ran at the command line "cat mapserver.log", it showed the error I tend to make in mapfile, e.g. I changed "UNITS KILOMETERS" to "UNITS KILO", it showed that it didn't know "KILO".  If that mapfile worked without error, no new message's in that log file. And with this error-free script run on Apache, it stoped with "Internal Server Error" with no new message in mapserver.log and at the error_log of Apache, it showed only one line "Premature end of script header:/mapserver/testmap.pl". With this error_log file, I'm very sure it printed out only one line of error per access to this script.
>> 
>> Thanks
>> Krung





More information about the mapserver-users mailing list