<div dir="ltr">Um, you are correct, the extension has not been compiled to work with the same version of php as you are trying to use.<div><br></div><div>I can only suggest that you get your php from the same source as your mapscript... (I guess homebrew, but my success there has been limited and conflicted) or compile php yourself, them mapserver with the php-mapscript option set.</div><div><br></div><div>You may be up for some pain...! You could also try <a href="http://kyngchaos.com">kyngchaos.com</a>, but I'm not sure if he is still providing a php suitable for what you want. </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 December 2015 at 17:28, Leonard <span dir="ltr"><<a href="mailto:dumont.leonard@gmail.com" target="_blank">dumont.leonard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone !<br>
<br>
I am a new user trying to use mapserver, and I have some problems... One of<br>
them is that I cannot load the php_mapscript extension. I have PHP 5.6.11<br>
installed with  <a href="http://php-osx.liip.ch" rel="noreferrer" target="_blank">php-osx.liip.ch</a> <<a href="http://php-osx.liip.ch" rel="noreferrer" target="_blank">http://php-osx.liip.ch</a>>   and mapscript 6.4<br>
installed with Homebrew, and there seems to be a conflict, since when I run<br>
php I get this warning :<br>
<br>
Warning: PHP Startup: MapScript: Unable to initialize module<br>
Module compiled with module API=20100525<br>
PHP    compiled with module API=20131226<br>
These options need to match<br>
<br>
I added this line to my php.ini file :<br>
<br>
extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so"<br>
<br>
Thanks for your help !<br>
<br>
Léonard Dumont.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br>Ben Madin<div>BVMS PhD, MANZCVS<br><br>t : +61 8 6102 5535<br>m : +61 448 887 220<br>e : <a href="mailto:ben@ausvet.com.au" target="_blank">ben@ausvet.com.au</a><br><br>AusVet Animal Health Services<br>Western Australia<br><br><a href="http://www.ausvet.com.au/" target="_blank">www.ausvet.com.au</a><br></div></div></div>
</div>