[4.6.1 TO 4.8.1]: Problems with PNG and PHP/MapScript?

Sebastian Albrecht albrecht at FIELAX.DE
Wed Feb 22 07:06:01 EST 2006


Hello,

I just wanted to change from 4.6.1 to 4.8.1 because I've read the 
querymapObj is available in PHP/Mapscript since 4.8.

So what I did was taking my old configure line from 4.6.1 and using it 
for the new version:

./configure
--enable-force-freetype1
--with-gd=/usr/local
--with-zlib
--with-jpeg
--with-tiff
--with-png
--with-xpm=/usr/X11R6
--with-threads
--with-proj=/usr/local
--with-php=/usr/local/src/php-5.0.4 
--with-gdal=/usr/local/bin/gdal-config 
--with-ogr=/usr/local/bin/gdal-config 
--with-postgis=/usr/local/pgsql/bin/pg_config
--with-wfs
--with-wcs
--with-wmsclient
--with-wfsclient
--with-curl-config=/usr/local/bin/curl-config


The compiling finishes without errors but all my MapScript applications 
which use PNG as output format don't work.
It says "INTERNAL SERVER ERROR"
which is "Premature end of header in /usr/local/bin/php".

My PHP version is 5.0.4 which uses the same GD (2.0.33) installation as 
MapServer. And it worked with 4.6.1 without problems.

Anybody had a similar problem or knows what to do?


Sebastian



More information about the mapserver-users mailing list