[Ubuntu] php mapscript isn't working
Alan Boudreault
aboudreault at mapgears.com
Mon Feb 18 07:25:55 PST 2013
I am not 100% sure... but the problem might be related to the use of
dl() function. Try loading your extension in php.ini.
Alan
On 13-02-17 03:21 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
>
> sudo find / -name php_mapscript.so # result:
>
> /usr/lib/php5/20090626/php_mapscript.so
>
> ls /usr/lib/php5/20090626 -l # result:
>
> ...
> -rw-r--r-- 1 root root 2920752 Oct 24 07:11 php_mapscript.so
>
> My php script script dies on this line:
>
> <?php
> ...
> $map = ms_newMapObj(__MAPS_PATH__ . 'eunomi0.map');
> ...
> ?>
>
> Adding the line:
>
> dl("php_mapscript.so");
>
> before the ms_newMapObj call also produces no result.
>
>
> 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 specs
>
>
> The mapserver.log file is empty. Any clues?
> This worked fine on my old server.
>
> Thanks a bunch,
> Vince
> _______________________________________________
> UbuntuGIS mailing list
> Ubuntu at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/ubuntu
> http://trac.osgeo.org/ubuntugis/wiki
>
--
Alan Boudreault
http://www.mapgears.com/
More information about the Ubuntu
mailing list