I recently upgraded my development server and updated all the relevant 
software. The only thing that doesn't work is mapserver/php-mapscript.

Here's the particulars:

After Ubuntu server 12.04, postgres 9.1, apache2, and php5 seemingly (since 
they work) installed fine, the installation commands were :

sudo apt-add-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-cache search postgis
sudo apt-get install postgis postgresql-9.1-postgis mapserver-bin 
php5-mapscript cgi-mapserver
./mapserv -v # result:

   MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG sUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS 
SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

The file php_mapscript.so is in /usr/lib/php5/20090626 and phpinfo() suggests 
that everything is fine, but my PHP script script dies on this line:

<?php
...
$map = ms_newMapObj(__MAPS_PATH__ . 'eunomi0.map');
...
?>

The mapfile eunomi0.map is:

MAP
  CONFIG "MS_ERRORFILE" "/tmp/mapserver.log"
  CONFIG "MS_DEBUGLEVEL" "4"

  OUTPUTFORMAT
    NAME 'AGG_Q'
    DRIVER AGG/PNG
    IMAGEMODE RGB
    FORMATOPTION "QUANTIZE_FORCE=ON"
    FORMATOPTION "QUANTIZE_DITHER=OFF"
  END

  FONTSET "font.list"
  SYMBOLSET "symbols.sym"

  EXTENT         -180 -90 180 90
  SIZE           1190 595
  MAXSIZE        2048
  IMAGECOLOR     173 178 161
  STATUS         OFF

... 20 or so LAYER objects, raster pngs and posgis vectors

The mapserver.log file is empty. Any clues?
This worked fine on my old server.

Thanks a bunch,
Vince
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to