[mapserver-users] php_mapscript throubleshoot

Stefanos Anastasiou emperor_stef at yahoo.gr
Wed Mar 11 00:47:19 PDT 2020


 Hello,    I also have the same problem. I have only compiled the PHPNG version and there is libphp_mapscriptng.so generated which I try to put in /usr/lib/php/2017(...)  folder, as this is the extension folder shown by phpinfo(). But test_draw_map still fails complaining about new_mapObj  in line 2508 (if I remember correct) of the mapscript.php file which I include in the beginning of the script as described in the migration guide https://mapserver.org/MIGRATION_GUIDE.html . I have compiled SWIG 3.0.12 . 
Regards,Stefanos
    Στις Τετάρτη, 11 Μαρτίου 2020, 03:47:08 π.μ. EET, ο χρήστης Richard Greenwood <richard.greenwood at gmail.com> έγραψε:  
 
 Shouldn't php_mapscript.so be in /usr/lib/php/20170718/ or similar? I'm on Ubuntu so maybe it's different on Centos.
Also note that you have compiled two different version of mapscript so you should have both php_mapscript.so and php_mapscriptng.so
On Fri, Mar 6, 2020 at 7:38 AM Domenico Febbo <domenico.febbo at gmail.com> wrote:

Dearsafter 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,_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200311/333e87ed/attachment.html>


More information about the mapserver-users mailing list