<div dir="ltr"><div>Finally it was not so hard, but the problem is still the same... I have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I still have the same error :<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> in Unknown on line 0<br><br></div>Any ideas ?<br><br clear="all"><div><div class="gmail_signature">Best regards,<br><br>Léonard Dumont</div></div>
<div class="gmail_extra"><br><div class="gmail_quote">2015-12-11 13:03 GMT+01:00 Léonard DUMONT <span dir="ltr"><<a href="mailto:dumont.leonard@gmail.com" target="_blank">dumont.leonard@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok, thanks for your answer. I thought there could have been another solution, but I'll try to install PHP with homebrew.<br></div><br clear="all"><div><div>Cordialement,<br><br>Léonard Dumont</div></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><div class="gmail_quote">2015-12-11 10:33 GMT+01:00 Ben Madin <span dir="ltr"><<a href="mailto:ben@ausvet.com.au" target="_blank">ben@ausvet.com.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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"><div><div><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" target="_blank">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></div></div>-- <br><div><div dir="ltr"><br>Ben Madin<div>BVMS PhD, MANZCVS<br><br>t : <a href="tel:%2B61%208%206102%205535" value="+61861025535" target="_blank">+61 8 6102 5535</a><br>m : <a href="tel:%2B61%20448%20887%20220" value="+61448887220" target="_blank">+61 448 887 220</a><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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>