[MapServer-users] Docker image for MapServer with PHP-MapScript
Jan Hartmann
j.l.h.hartmann at gmail.com
Fri Oct 27 11:42:13 PDT 2023
I made a docker version of mapserver/php-mapscript myself, based on
Ubuntu 22.04. I installed all required libraries with apt, and compiled
mapserver and mapscript according to instructions. No problem at all.
At the end I got the following from phpinfo();
mapscript
MapServer Version MapServer version 8.0.1 PROJ version 9.3 GDAL version
3.4 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
But no mapscript function or object was regognized in my PHP-scripts:
PHP Fatal error: Uncaught Error: Class "mapObj" not found in
/virdir/www_root/test.php:2
Stack trace:
#0 {main}
thrown in /virdir/www_root/test.php on line 2
I am really desparate. Has anyone ever succeeded to get
php_mapscriptng.so to work? Or does anyone know of a working Docker
image for MapServer with PHP MapScript?
Jan
On 21/10/2023 05:40, Jan Hartmann wrote:
> I tried this with serveral versions of PHP and MapServer, but got
> always the same result. Can anyone point me to a Docker image for
> MapServer + PHP-MapScript?
>
> Jan
>
> On 19/10/2023 18:12, Jan Hartmann wrote:
>> Still not there. Everything has been installed, and phpinfo() gives:
>>
>> MapServer Version MapServer version 8.0.1 PROJ version 9.3 GDAL
>> version 3.7 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG
>> SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
>> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
>> SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER INPUT=JPEG INPUT=POSTGIS
>> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF
>>
>>
>> But calling "$map = new mapObj('mapfile.map');" gives:
>>
>> *Fatal error*: Uncaught Error: Class "mapObj" not found in
>> /mnt/virdir/www_root/test/test_mapscript.php:2 Stack trace: #0 {main}
>> thrown in*/mnt/virdir/www_root/test/test_mapscript.php*on line*2
>>
>> *Any idea?
>>
>> Jan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20231027/a85cce55/attachment.htm>
More information about the MapServer-users
mailing list