Installing PHP Soap on OSX Leopard 10.6.4
Note: There is an update for this article: Installing PHP Soap on OSX Lion 10.7.2
I noticed this article that instructs you on how to install php_soap.so extension on Leopard 10.5.5.
However, this method doesn’t work for the newer versions of OSX and PHP currently out there in the wild.
So here’s an update on that tutorial :
Firstly you’ll need to find out which version of PHP your running, then you’ll need to get the PHP source files to extract the Soap extension:
curl -O http://de3.php.net/distributions/php-5.3.1.tar.bz2 tar xjf php-5.3.1.tar.bz2 cd php-5.3.1 export LIBTOOLIZE=glibtoolize MACOSX_DEPLOYMENT_TARGET=10.6 cd ext/php phpize MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" ./configure make sudo make install
It should tell where it copied the soap extension, on OSX 10.6.4 it’s in : (/usr/lib/php/extensions/no-debug-non-zts-20090626)
If you’re PHP installation is anything like mine you’ll need to enable the extension in your php.ini file. Again your PHP_Info file should help you with the location, mine is located at /private/etc/php.ini it’s under “Loaded Configuration File” entry in your phpinfo() document.
We’ll need to add the extension (or at least ensure it’s there) :
sudo nano /private/etc/php.ini
Search for the extensions ctrl+w “extension” will jump to the extension section, go the bottom of this section and ensure that the last entry is :
extension=soap.so
Then press ctrl+o to write, enter to confirm ctrl+x to exit.
Now all that’s left it to restart apache and see if it worked.
sudo apachectl restart
Happy Soaping!
Note:
To get your PHP Info document create a .php file with the command
phpinfo();
in it and run this from a browser.
2 Responses to Installing PHP Soap on OSX Leopard 10.6.4
Leave a Reply Cancel reply
Twitter:
- Any AS3 developers looking for a full-time job out in Chiswick, London? Our agency (@candyspacemedia) have an opening for an AS3 / Air Dev… 7 hrs ago
- Flash Platform Roadmap : http://t.co/0JtJnamP looks promising, especially "Dolores" threading in AS3! 14 hrs ago
- @FDT5 Cheers :) in reply to FDT5 3 weeks ago
- More updates...
Posting tweet...
Friends





Thanks for the update! works like a charm.
ext/php doesnt exist? 10.6.8? =]