Classification: UNCLASSIFIED
Caveats: NONE

Thanks for the suggestions, Armin.

The svn version of MapServer did not fix the issue.

I also tried php 5.2 as a apache module with the same results.

I upgraded my php version to 5.3.10 and then recompiled Mapserver 6.0.1 against 
it and this fixed the issue.

Unfortunately without the ability to dynamically load extensions in php 5.3,  I 
believe I will have to run the older versions of pmapper/mapscript on a 
separate host until I finish all the upgrade work.

Once again thanks for your help.

Paul





-----Original Message-----
From: Armin Burger [mailto:armin.bur...@gmail.com] 
Sent: Thursday, February 02, 2012 1:50 PM
To: pmapper-users@lists.sourceforge.net
Subject: Re: [pmapper-users] Premature End of Script Headers with Mapserver 
V6.0x (UNCLASSIFIED)

Error 500 "Internal Server Error" is most of the time related to either 
PHP errors or Apache crashes etc, usually logged in PHP and Apache error 
logs.

I never use any more PHP as CGI, so I cannot say anything specifically 
to that. Quite likely that running as CGI Apache does not catch and log 
errors from the CGI that crashed.  If possible try also PHP as Apache 
module. Another thing you could try is the debugging possibilities with 
PHP and gdb
   https://bugs.php.net/bugs-generating-backtrace.php

Mapserver 6 had/has(?) some strange bugs in PHP Mapscript which can 
appear just under certain circumstances, more often with PHP 5.2 than 
5.3 (I guess developers mainly used 5.3 for developments).

If you can, please try to compile the SVN version of Mapserver 6
   https://svn.osgeo.org/mapserver/branches/branch-6-0/mapserver/
It should have some backported bug fixes that prevented Mapscript to 
work properly in some cases. Maybe this solves your problems.

Armin



On 02/02/2012 15:06, Holt, Paul R SAJ Contractor wrote:
> Classification: UNCLASSIFIED
> Caveats: NONE
>
> I am in the process of upgrading our Pmapper installation from 3.x to 4.2.
>
> I have downloaded and installed version 4.2 along with the demo map data.  I 
> am using php 5.2.17 and Mapserver 6.0.1.  When I attempt to load the 
> map_default.phtml I receive and "Internal Server Error..." page.
> The apache log reports  "Premature end of script headers: php-cgi, referer: 
> http://sajgeo/projects/pmapper4/";  Unfortunately there is no other php, 
> mapserver, or pmapper debug or error info.
>
> When I switch to MapServer/Script 5.6 compiled against the same php version 
> the demo works fine.
>
> The Mapserver 6.0.1 installation works with other applications and I have 
> tested and used the demo map file in a simple php mapscript 6.0.1 application.
>
> Has anybody encountered this error?
>
> Classification: UNCLASSIFIED
> Caveats: NONE
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Classification: UNCLASSIFIED
Caveats: NONE



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to