Getting MapServer working (PHP MapScript)

blaise bpicinbono at WORLDONLINE.FR
Tue May 31 10:20:33 EDT 2005


Le mardi 31 Mai 2005 01:52, Abe Gillespie a écrit :
> I'm trying to get things up & running on my new laptop and haven't run
> into this much trouble with MapServer before.  I'm running the latest
> Ubuntu and compiled PHP MapScript with the latest stable MapServer
> release + the latest libraries.  This is my configure command:
>
> /configure --with-proj=/usr/local/src/proj-4.4.9
> --with-geos=/usr/local/bin/geos-config
> --with-postgis=/usr/local/src/postgis-1.0.1
> --with-gdal=/usr/local/bin/gdal-config
> --with-php=/usr/local/src/php-4.3.11 --prefix=/usr/local
>
> The only things installed via apt-get are Apache2 and GD.
>
> I'm trying to get a simple Chameleon sample running and am getting the
> dreaded "premature end of script headers" error.  OTH, if I try to
> setup a simple page with a simple map (one layer in the map file), I
> don't getting anything past the ms_newMapObj() line; not even errors.
> For example:
>
> <html>
> <body>
> <?
> dl("php_mapscript.so");
> echo("Starting...");
> $map = ms_newMapObj("simple.map");
> $img = $map->draw();
> ?>
> </body>
> </html>
>
> Looks like this when it gets to the client:
> <html>
> <body>
> Starting...
>
> It dies at ms_newMapObj() with no helpful messages.
>
> Help is very much appreciated.
>
> Thanks.
> -Abe


Have you switched on the php errors messages in the php.ini file ?
What does your apache error log tell ?



More information about the mapserver-users mailing list