[mapserver-users] php-mapscript not working
Daniel Morissette
dmorissette at mapgears.com
Wed Feb 20 19:39:48 PST 2013
I may be wrong, but I don't think the following line in your mapfile
will do anything:
CONFIG "MS_DEBUGLEVEL" "4"
Instead, inside a mapfile I'd suggest using:
DEBUG 4
and then see if you get some log output...
Daniel
On 13-02-18 3:34 PM, Vince Miller wrote:
> 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
More information about the MapServer-users
mailing list