[mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8
Hi there, I've installed MapServer 6.0.0-3 (thanks to the installer from http://www.kyngchaos.com) on my local computer, which I'm guessing is working since that when I'm going to http://localhost/cgi-bin/mapserv? with my browser I can see this error : No query information to decode. QUERY_STRING is set, but empty. which means MapServer is working, right ? I'd like to use MapServer through the PHP MapScript. My installation seems ok for my phpinfo() displays a MapScript section. But when I'm running php -m command in my shell, there is no mention of MapScript in the list of modules, I'm guessing something is going wrong here but I've failed to find out what it could be. The Apache version on my mac is 2.2.17 and I'm running PHP 5.3.6. I've tried to make this http://mapserver.org/mapscript/php/by_example.html#php-example example work (I've of course changed the pathes in the MapFile so that they match to my local files), but despite my efforts it doesn't. And the script is not returning any error message, just an empty page. Any idea to help me solve that ? Thanks for your help ! Léo D. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6546297.html Sent from the Mapserver - User mailing list archive at Nabble.com.___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8
Léo, My guess is that your php.ini doesn't load the php_mapscript.so library. There was a mention somewhere when installing the current update that this doesn't happen (and you can't dl() it anymore); so you need to go to the /usr/local/php5cgi/lib directory, and edit php.ini. somewhere (anywhere!) you need to add the line : extension=php_mapscript.so (I personally put it below the line that loads ming.so so I remember where to look) Then put a file with ?php phpinfo(); ? into your server root and execute it and you should end up with : MapScript MapServer Version MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 11619 $ $Date: 2011-04-27 08:23:07 -0700 (Wed, 27 Apr 2011) $) I don't think it will show using php -m cheers Ben On 04/07/2011, at 11:16 PM, mapserver-users-requ...@lists.osgeo.org wrote: From: Léo D. leo_dum...@yahoo.fr Date: 4 July 2011 10:18:25 PM AWST To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 Hi there, I've installed MapServer 6.0.0-3 (thanks to the installer from http://www.kyngchaos.com) on my local computer, which I'm guessing is working since that when I'm going to http://localhost/cgi-bin/mapserv? with my browser I can see this error : No query information to decode. QUERY_STRING is set, but empty. which means MapServer is working, right ? I'd like to use MapServer through the PHP MapScript. My installation seems ok for my phpinfo() displays a MapScript section. But when I'm running php -m command in my shell, there is no mention of MapScript in the list of modules, I'm guessing something is going wrong here but I've failed to find out what it could be. The Apache version on my mac is 2.2.17 and I'm running PHP 5.3.6. I've tried to make this example work (I've of course changed the pathes in the MapFile so that they match to my local files), but despite my efforts it doesn't. And the script is not returning any error message, just an empty page. Any idea to help me solve that ? Thanks for your help ! Léo D. View this message in context: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8
PHP 5.3 doesn't allow extension loading from scripts now without compiling support for it into PHP and enabling it in php.ini. Unfortunately, I could not get that to work for my PHP package, so you must load extensions from php.ini with: extension=php_mapscript.so I need to add a note about this to my MapServer package, or make the installer do it. On Jul 4, 2011, at 9:18 AM, Léo D. wrote: Hi there, I've installed MapServer 6.0.0-3 (thanks to the installer from http://www.kyngchaos.com) on my local computer, which I'm guessing is working since that when I'm going to http://localhost/cgi-bin/mapserv? with my browser I can see this error : No query information to decode. QUERY_STRING is set, but empty. which means MapServer is working, right ? I'd like to use MapServer through the PHP MapScript. My installation seems ok for my phpinfo() displays a MapScript section. But when I'm running php -m command in my shell, there is no mention of MapScript in the list of modules, I'm guessing something is going wrong here but I've failed to find out what it could be. The Apache version on my mac is 2.2.17 and I'm running PHP 5.3.6. I've tried to make this example work (I've of course changed the pathes in the MapFile so that they match to my local files), but despite my efforts it doesn't. And the script is not returning any error message, just an empty page. Any idea to help me solve that ? Thanks for your help ! Léo D. View this message in context: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users