Getting MapServer working (PHP MapScript)

Abe Gillespie abe.gillespie at GMAIL.COM
Mon May 30 16:52:35 PDT 2005


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



More information about the MapServer-users mailing list