<div dir="ltr">Thanks for your advices. The PHP binaries from <a href="http://kyngchaos.com">kyngchaos.com</a> are a little bit old, I'll try to see on the Homebrew list.<br><br clear="all"><div><div class="gmail_signature">Cheers,<br><br>Léonard.<br></div></div>
<div class="gmail_extra"><br><div class="gmail_quote">2015-12-11 14:28 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 style="word-wrap:break-word">Did you look at <a href="http://kyngchaos.com" target="_blank">kyngchaos.com</a><div><br></div><div>Even if you only use his unix frameworks, then compile your own php, you will be most of the way there. </div><div><br></div><div>otherwise, if you want to persist with home-brew, I’d put it onto their list</div><div><br></div><div>cheers</div><div><br></div><div>Ben</div><div><br></div><div><br></div><div><br></div><div><br><div><div><div class="h5"><div><blockquote type="cite"><div>On 2015-12-11, at 20:38 , Léonard DUMONT <<a href="mailto:dumont.leonard@gmail.com" target="_blank">dumont.leonard@gmail.com</a>> wrote:</div><br><div><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>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><div>
<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 <a href="http://Nabble.com" target="_blank">Nabble.com</a>.<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>
_______________________________________________<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" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div></blockquote></div><br></div></div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><div class="h5"><div><br>-- <br><br>Ben Madin<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></div><div><br></div></div></div><div>18/27 Market Street, Fremantle</div>Western Australia<br><br><div>AusVet's website: <a href="http://www.ausvet.com.au" target="_blank">http://www.ausvet.com.au</a> Find our office: <a href="http://w3w.co/leader.code.frozen" target="_blank">http://w3w.co/leader.code.frozen</a><br><br>This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this email are the opinion of the writer only and are not endorsed by AusVet Animal Health Services unless expressly stated otherwise. Although AusVet uses virus scanning software we do not accept liability for viruses or similar in any attachments. Thanks for reading. <span style="text-align:-webkit-auto">The average disclaimer at the bottom of</span><span style="text-align:-webkit-auto"> </span><span style="text-align:-webkit-auto">an email is probably never read but</span><span style="text-align:-webkit-auto"> </span><span style="text-align:-webkit-auto">contributes substantially to increasing</span><span style="text-align:-webkit-auto"> </span><span style="text-align:-webkit-auto">the size of packet being sent through the</span><span style="text-align:-webkit-auto"> </span><span style="text-align:-webkit-auto">internet and ultimately congestion.</span></div></div></div></div></div></div></div>
</div>
<br></div></div></div></blockquote></div><br></div></div>