

Rename your php-5.x.x directory to php (without the version numbering).Tar zxvf php-5.x.x.tar.gz -C /Applications/MAMP/bin/php/php5.?.?/include Untar php-5.x.x.tar.gz into /Applications/MAMP/bin/php/php5.*/include or /Applications/MAMP/bin/php5/include.Mkdir -vp /Applications/MAMP/bin/php5/include Create a directory for your PHP sources:.Identify your php-5.x.x.tar.gz file (where 5.x.x is your version of PHP).Install ImageMagick (required by PHP ffmpeg.so extension).Install ffmpeg (required by PHP ffmpeg.so extension).

If you don’t have any, please install brew.(which brew || which port) & echo YES || echo NO Execute the following line in Terminal to check:.Make sure that you have command line package manager for Mac like brew or MacPorts:.Should give you the right API version of your PHP and Zend (without any errors), i.e. Which should point to your MAMP installation: First of all point your php and phpize to your MAMP environmentĪdd/change following line in ~/.profile or ~/.bashrc (for bash):Įxport PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php5.2.17/bin:/usr/local/bin:$PATH:/opt/local/binĪnd after that please re-login (or just execute e.g.
