<html><head></head><body><div class="ydp1f9c7459yahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><div></div>
        <div dir="ltr" data-setdir="false">Hello, </div><div dir="ltr" data-setdir="false">   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 (<span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">if I remember correct</span></span>) of the mapscript.php file which I include in the beginning of the script as described in the migration guide <a href="https://mapserver.org/MIGRATION_GUIDE.html" rel="nofollow" target="_blank">https://mapserver.org/MIGRATION_GUIDE.html</a> . I have compiled SWIG 3.0.12 . </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards,</div><div dir="ltr" data-setdir="false">Stefanos</div><div><br></div>
        
        </div><div id="yahoo_quoted_4662881083" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    Στις Τετάρτη, 11 Μαρτίου 2020, 03:47:08 π.μ. EET, ο χρήστης Richard Greenwood <richard.greenwood@gmail.com> έγραψε:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv1018448231"><div><div dir="ltr">Shouldn't php_mapscript.so be in /usr/lib/php/20170718/ or similar? I'm on Ubuntu so maybe it's different on Centos.<div><br clear="none"></div><div>Also note that you have compiled two different version of mapscript so you should have both php_mapscript.so and php_mapscriptng.so</div></div><br clear="none"><div class="yiv1018448231gmail_quote"><div class="yiv1018448231yqt3783959734" id="yiv1018448231yqt71530"><div class="yiv1018448231gmail_attr" dir="ltr">On Fri, Mar 6, 2020 at 7:38 AM Domenico Febbo <<a rel="nofollow" shape="rect" ymailto="mailto:domenico.febbo@gmail.com" target="_blank" href="mailto:domenico.febbo@gmail.com">domenico.febbo@gmail.com</a>> wrote:<br clear="none"></div><blockquote class="yiv1018448231gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div dir="ltr">Dears<div>after successully compilation of mapserver 7.4.3 on centos 8,</div><div>I'm not able to load 

php_mapscript on PHP environment, (nothing related to mapscript is displayed on phpinfo();</div><div><br clear="none"></div><div>some info:</div><div>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 ../<br clear="none"></div><div>-- /usr/include/php/main<br clear="none">-- Found PHP-Version 7.2.11 (using /usr/bin/php-config)<br clear="none">-- Found SWIG: /usr/local/bin/swig (found version "4.0.1")<br clear="none">-- /usr/include/php/main<br clear="none">-- Found PHP-Version 7.2.11 (using /usr/bin/php-config)<br clear="none">-- 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<br clear="none">-- * Summary of configured options for this build<br clear="none">--  * Mandatory components<br clear="none">--   * png: /usr/lib64/libpng.so<br clear="none">--   * jpeg: /usr/lib64/libjpeg.so<br clear="none">--   * freetype: /usr/lib64/libfreetype.so<br clear="none">--  * Optional components<br clear="none">--   * GDAL: /usr/gdal30/lib/libgdal.so<br clear="none">--   * OGR: /usr/gdal30/lib/libgdal.so<br clear="none">--   * GIF: /usr/lib64/libgif.so<br clear="none">--   * MYSQL: disabled<br clear="none">--   * FRIBIDI: /usr/lib64/libfribidi.so<br clear="none">--   * HARFBUZZ: /usr/lib64/libharfbuzz.so<br clear="none">--   * GIF: /usr/lib64/libgif.so<br clear="none">--   * CAIRO: disabled<br clear="none">--   * SVGCAIRO: disabled<br clear="none">--   * RSVG: disabled<br clear="none">--   * CURL: /usr/lib64/libcurl.so<br clear="none">--   * PROJ: /usr/proj63/lib/libproj.so<br clear="none">--   * PIXMAN: disabled<br clear="none">--   * LIBXML2: /usr/lib64/libxml2.so<br clear="none">--   * POSTGIS: /usr/pgsql-12/lib/libpq.so<br clear="none">--   * GEOS: /usr/geos38/lib64/libgeos_c.so<br clear="none">--   * FastCGI: /usr/lib64/libfcgi.so<br clear="none">--   * PROTOBUFC: disabled<br clear="none">--   * Oracle Spatial: disabled<br clear="none">--   * Exempi XMP: disabled<br clear="none">--  * Optional features<br clear="none">--   * WMS SERVER: ENABLED<br clear="none">--   * WFS SERVER: ENABLED<br clear="none">--   * WCS SERVER: ENABLED<br clear="none">--   * SOS SERVER: disabled<br clear="none">--   * WMS CLIENT: ENABLED<br clear="none">--   * WFS CLIENT: ENABLED<br clear="none">--   * ICONV: ENABLED<br clear="none">--   * Thread-safety support: disabled<br clear="none">--   * KML output: disabled<br clear="none">--   * Z+M point coordinate support: disabled<br clear="none">--   * XML Mapfile support: disabled<br clear="none">--  * Mapscripts<br clear="none">--   * Python: disabled<br clear="none">--   * PHP: ENABLED<br clear="none">--   * PHPNG: ENABLED<br clear="none">--   * PERL: disabled<br clear="none">--   * RUBY: disabled<br clear="none">--   * JAVA: disabled<br clear="none">--   * C#: disabled<br clear="none">--   * V8 Javascript: disabled<br clear="none">--   * Apache Module (Experimental): disabled<br clear="none">--<br clear="none">-- Will install files to /usr/local<br clear="none">-- Will install libraries to /usr/local/lib<br clear="none">-- Configuring done<br clear="none">-- Generating done<br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div>after make; make install </div><div>I can check:</div><div># mapserv -v<br clear="none">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<br clear="none"></div><div><br clear="none"></div><div>lib is in the right place:</div><div>/usr/lib64/php/modules/php_mapscript.so<br clear="none"></div><div>and extension is configured:</div><div>/etc/php.d/30-php_mapscript.ini<br clear="none">; Enable mapserver extension module<br clear="none">extension=php_mapscript<br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div>Do you have any idea how to check if the module is loaded?</div><div><br clear="none"></div><div>Regards,</div></div>
_______________________________________________<br clear="none">
mapserver-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:mapserver-users@lists.osgeo.org" target="_blank" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div></div><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv1018448231gmail_signature" dir="ltr"><div dir="ltr">Richard W. Greenwood, PLS<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.greenwoodmap.com">www.greenwoodmap.com</a></div></div></div></div><div class="yqt3783959734" id="yqt12336">_______________________________________________<br clear="none">mapserver-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br clear="none"><a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div></div>
            </div>
        </div></body></html>