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

Reply via email to