or as another solution, use still MapServer 5.6 if you do not need the 
new functionality (or new bugs...) of MS 6. So far for me the main 
advantage of MS 6 is the correct implementation of WMS v1.3.0, otherwise 
I would not need it.

The problem with this type of error is to narrow it down with a simple 
script since in the full application is difficult to identify where it 
stopped. One can try watching the "Net" tab of Firebug and try see how 
far it went and at which point the server returns an error. If running 
PHP as Apache module the failing script should return a "500 internal 
server error". This way I could identify 2 bugs that were fixed now, 1 
for 6.0 and the other for the SVN trunk.

When you used the Apache module, did you get a segmentation fault in the 
apache error log?

I e.g. found another weird problem with the OWS/WxS functions of PHP 
Mapscript I use for WMS. An error occurs only for very special BOX 
extents (ymin with negative, ymax with positive values), just on a 
Debian 6 machine 64bit, PHP 5.2, but not on a Debian 5 x86 machine with 
the same PHP version... And the error is a strange apache error log 
(this time no segfault)...

Armin


On 03/02/2012 21:22, Holt, Paul R SAJ Contractor wrote:
> 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
>

------------------------------------------------------------------------------
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