[mapserver-users] XAMPP, mapscript, PHP API
Paul DeVries
paul.devries.wpc at gmail.com
Fri Oct 29 10:21:25 PDT 2010
Trying to get Mapserver and PHP Mapscript installed, under already
running Apache (XAMPP, W7, Apache 2.2.14 (Win32),PHP 5.3.1)
Have followed advice I could find, as best I could:
1. followed steps
http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#i-installing-the-ms4w-mapserver-binaries-in-other-environments
Using files from ms4w 2.3.1.
So listed dlls are in C:\xampp\cgi-bin
php_mapscript.dllis in C:\xampp\php\ext
Various paths in conf/httpd.conf set
Mapserver running, for exampled testing
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map
<http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map>,
OK; commandline tools OK.
php.ini has extension=php_mapscript.dll, php.ini is the correct one
(have activated/deactivated several other extensions which are then
reflected in php_info)
2. now I want the PHP mapscript to work, the goal...
testing with quickmap.php (got rid of the dl() call as it's not
supported and I have mapscript in php.ini as an extension)
"Call to undefined function ms_newMapObj()
in*C:\xampp\htdocs\quickmap.php*on line*27"
*hmm, ok, and the mapscript extension is not showing up in php_info either
running: php.exe ....htdocs/phpinfo_mapscript.php or any *.php using the
mapscript dll, getting
...
Module compiled with module API=20060613
PHP compiled with module API=20090626
...they must match ...
Suggestions? Do I have to compile php_mapscript.dll to somehow match the
PHP compilation?
/Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101029/8a854df0/attachment.htm>
More information about the MapServer-users
mailing list