<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Léo,<div><br></div><div>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);</div><div><br></div><div>so you need to go to the&nbsp;/usr/local/php5cgi/lib directory, and edit php.ini.</div><div><br></div><div>somewhere (anywhere!) you need to add the line :</div><div><br></div><div><div>extension=php_mapscript.so</div></div><div><br></div><div>(I personally put it below the line that loads ming.so so I remember where to look)</div><div><br></div><div>Then put a file with&nbsp;</div><div><br></div><div>&lt;?php</div><div>phpinfo();</div><div>?&gt;</div><div><br></div><div>into your server root and execute it and you should end up with :</div><div><br></div><div><h2 style="font-family: sans-serif; font-size: 20px; "><a name="module_MapScript">MapScript</a></h2><table border="0" cellpadding="3" width="600" style="border-collapse: collapse; margin-left: auto; margin-right: auto; text-align: left; position: static; z-index: auto; font-family: sans-serif; "><tbody><tr><td class="e" style="font-family: sans-serif; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); font-size: 12px; vertical-align: baseline; background-color: rgb(204, 204, 255); font-weight: bold; color: rgb(0, 0, 0); ">MapServer Version</td><td class="v" style="font-family: sans-serif; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); font-size: 12px; vertical-align: baseline; background-color: rgb(204, 204, 204); color: rgb(0, 0, 0); ">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</td></tr><tr><td class="e" style="font-family: sans-serif; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); font-size: 12px; vertical-align: baseline; background-color: rgb(204, 204, 255); font-weight: bold; color: rgb(0, 0, 0); ">PHP MapScript Version</td><td class="v" style="font-family: sans-serif; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); font-size: 12px; vertical-align: baseline; background-color: rgb(204, 204, 204); color: rgb(0, 0, 0); ">($Revision: 11619 $ $Date: 2011-04-27 08:23:07 -0700 (Wed, 27 Apr 2011) $)<br><br><br><br></td></tr></tbody></table></div><div><div><div><br></div><div>I don't think it will show using php -m&nbsp;</div><div><br></div><div>cheers</div><div><br></div><div>Ben</div><div><br></div><div><br></div><div><br></div><div>On 04/07/2011, at 11:16 PM, <a href="mailto:mapserver-users-request@lists.osgeo.org">mapserver-users-request@lists.osgeo.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>From:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; ">Léo D. &lt;<a href="mailto:leo_dumont@yahoo.fr">leo_dumont@yahoo.fr</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>Date:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; ">4 July 2011 10:18:25 PM AWST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>To:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; "><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); "><b>Subject:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; "><b>[mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8</b><br></span></div><br><br>Hi there, I've installed MapServer 6.0.0-3 (thanks to the installer from<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kyngchaos.com/">http://www.kyngchaos.com</a>) on my local computer, which I'm guessing is working since that when I'm going to<span class="Apple-converted-space">&nbsp;</span><a href="http://localhost/cgi-bin/mapserv?">http://localhost/cgi-bin/mapserv?</a><span class="Apple-converted-space">&nbsp;</span>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<span class="Apple-converted-space">&nbsp;</span><a href="http://mapserver.org/mapscript/php/by_example.html#php-example" target="_top" rel="nofollow" link="external">example</a><span class="Apple-converted-space">&nbsp;</span>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.<span class="Apple-converted-space">&nbsp;</span><br><hr align="left" width="300">View this message in context:<span class="Apple-converted-space">&nbsp;</span><a href="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">Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8</a><br>Sent from the<span class="Apple-converted-space">&nbsp;</span><a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html">Mapserver - User mailing list archive</a><span class="Apple-converted-space">&nbsp;</span>at<span class="Apple-converted-space">&nbsp;</span><a href="http://Nabble.com/">Nabble.com</a>.<br></blockquote></div><br></div></body></html>