Hello Steve, I am familiar with this error.
Your server's php.ini file is trying to load the php_mapscript.so file but is having problems. (you can verify this through the commandline by trying to load the PHP modules: php -m) I have seen this problem when users try to grab PHP binaries from one source, and then grab a php_mapscript.so from another source (the same occurs on Windows). Short solution: edit your php.ini file and search for 'extension=php_mapscript' and comment out that line; you will then be able to use your PHP scripts without that warning. Hope that helps. -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-03-15 3:59 PM, [email protected] wrote: > > Hi, > I have a warning with php and it seems to be related with the module > Mapscript. > > With apache my php file is well executed , from a command line it is > also well executed by I get this warning: > PHP Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20060613 > PHP compiled with module API=20090626 > These options need to match > > My php script content has nothing related to mapserv or mapscript though... > > phpinfo() doesn't return anything about MapScript, I guess it should? > But What can I do about that? > > I'm on linux sles 11 SP1 > phpinfo returns php version is 5.3.8 > I've installed mapserver and php-mapserver from this opensuse repo: > Application:/Geo/SLE_11 > mapserv -v gives this > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > 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 _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
