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

<br>

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

<br>

Aaron<br>
<br>
<br><br><div><span class="gmail_quote">On 2/22/06, <b class="gmail_sendername">Sebastian Albrecht</b> &lt;<a href="mailto:albrecht@fielax.de">albrecht@fielax.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I just wanted to change from 4.6.1 to 4.8.1 because I've read the<br>querymapObj is available in PHP/Mapscript since 4.8.<br><br>So what I did was taking my old configure line from 4.6.1 and using it<br>for the new version:
<br><br>./configure<br>--enable-force-freetype1<br>--with-gd=/usr/local<br>--with-zlib<br>--with-jpeg<br>--with-tiff<br>--with-png<br>--with-xpm=/usr/X11R6<br>--with-threads<br>--with-proj=/usr/local<br>--with-php=/usr/local/src/php-
5.0.4<br>--with-gdal=/usr/local/bin/gdal-config<br>--with-ogr=/usr/local/bin/gdal-config<br>--with-postgis=/usr/local/pgsql/bin/pg_config<br>--with-wfs<br>--with-wcs<br>--with-wmsclient<br>--with-wfsclient<br>--with-curl-config=/usr/local/bin/curl-config
<br><br><br>The compiling finishes without errors but all my MapScript applications<br>which use PNG as output format don't work.<br>It says &quot;INTERNAL SERVER ERROR&quot;<br>which is &quot;Premature end of header in /usr/local/bin/php&quot;.
<br><br>My PHP version is 5.0.4 which uses the same GD (2.0.33) installation as<br>MapServer. And it worked with 4.6.1 without problems.<br><br>Anybody had a similar problem or knows what to do?<br><br><br>Sebastian<br></blockquote>
</div><br><br clear="all"><br>-- <br>+--------------------------------------------<br>|&nbsp;&nbsp;Aaron Koning<br>|&nbsp;&nbsp;Information Technologist<br>|&nbsp;&nbsp;Prince George, BC, Canada.<br>+--------------------------------------------<br>|&nbsp;&nbsp;
<a href="http://datashare.gis.unbc.ca/fist/">http://datashare.gis.unbc.ca/fist/</a><br>|&nbsp;&nbsp;<a href="http://datashare.gis.unbc.ca/gctp-js/">http://datashare.gis.unbc.ca/gctp-js/</a><br>+--------------------------------------------