This could be a number of things. Are you editing your files in windows and then transfering them to Linux? Could be incompatible line endings. Are you including a shebang line in your PHP scripts? Could be a problem with odd characters in the shebang line. Could be a problem with the new php.ini file and the doc_root variable.

Have you tried creating a simple PHP script and testing, followed by a simple PHP-MapScript script (and testing)?

Aaron



On 2/22/06, Sebastian Albrecht <[EMAIL PROTECTED]> wrote:
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



--
+--------------------------------------------
|  Aaron Koning
|  Information Technologist
|  Prince George, BC, Canada.
+--------------------------------------------
|   http://datashare.gis.unbc.ca/fist/
|  http://datashare.gis.unbc.ca/gctp-js/
+--------------------------------------------

Reply via email to