[mapserver-users] php_mapscript throubleshoot

Domenico Febbo domenico.febbo at gmail.com
Fri Mar 6 06:38:42 PST 2020


Dears
after successully compilation of mapserver 7.4.3 on centos 8,
I'm not able to load  php_mapscript on PHP environment, (nothing related to
mapscript is displayed on phpinfo();

some info:
cmake
 -DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local"
-DWITH_PHPNG=ON -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON  -DWITH_CURL=ON
-DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=ON
-DWITH_HARFBUZZ=ON -DWITH_GEOS=ON ../
-- /usr/include/php/main
-- Found PHP-Version 7.2.11 (using /usr/bin/php-config)
-- Found SWIG: /usr/local/bin/swig (found version "4.0.1")
-- /usr/include/php/main
-- Found PHP-Version 7.2.11 (using /usr/bin/php-config)
-- PHP Include Path:
/usr/include/php;/usr/local/include/php;/usr/include/php;/usr/local/include/php;/usr/local/apache/php;/usr/include/php/Zend;/usr/include/php/main;/usr/include/php/TSRM;INTERNAL;PHP
include paths
-- * Summary of configured options for this build
--  * Mandatory components
--   * png: /usr/lib64/libpng.so
--   * jpeg: /usr/lib64/libjpeg.so
--   * freetype: /usr/lib64/libfreetype.so
--  * Optional components
--   * GDAL: /usr/gdal30/lib/libgdal.so
--   * OGR: /usr/gdal30/lib/libgdal.so
--   * GIF: /usr/lib64/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: /usr/lib64/libfribidi.so
--   * HARFBUZZ: /usr/lib64/libharfbuzz.so
--   * GIF: /usr/lib64/libgif.so
--   * CAIRO: disabled
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: /usr/lib64/libcurl.so
--   * PROJ: /usr/proj63/lib/libproj.so
--   * PIXMAN: disabled
--   * LIBXML2: /usr/lib64/libxml2.so
--   * POSTGIS: /usr/pgsql-12/lib/libpq.so
--   * GEOS: /usr/geos38/lib64/libgeos_c.so
--   * FastCGI: /usr/lib64/libfcgi.so
--   * PROTOBUFC: disabled
--   * Oracle Spatial: disabled
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: disabled
--   * WMS CLIENT: ENABLED
--   * WFS CLIENT: ENABLED
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * Z+M point coordinate support: disabled
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: disabled
--   * PHP: ENABLED
--   * PHPNG: ENABLED
--   * PERL: disabled
--   * RUBY: disabled
--   * JAVA: disabled
--   * C#: disabled
--   * V8 Javascript: disabled
--   * Apache Module (Experimental): disabled
--
-- Will install files to /usr/local
-- Will install libraries to /usr/local/lib
-- Configuring done
-- Generating done


after make; make install
I can check:
# mapserv -v
MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

lib is in the right place:
/usr/lib64/php/modules/php_mapscript.so
and extension is configured:
/etc/php.d/30-php_mapscript.ini
; Enable mapserver extension module
extension=php_mapscript


Do you have any idea how to check if the module is loaded?

Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200306/1ecc8b4f/attachment.htm>


More information about the MapServer-users mailing list