- #Mamp for mac 10.7 install
- #Mamp for mac 10.7 archive
- #Mamp for mac 10.7 pro
- #Mamp for mac 10.7 code
To do this, run the following from your Terminal: pear install /PHPUnit PHPUnit is at present installed through PEAR. It goes without saying you should be running it.
PHPUnit is the industry standard for unit tests in PHP. We should setup PEAR to auto discover new channels: pear config-set auto_discover 1 Just one thing we should do before we continue. Double check with which pear: /Applications/MAMP/bin/php/php5.4.4/bin/pear Great news! You should have PEAR already set up if you followed through the previous section. This has caught be out before and hopefully it won't catch you now! I have come across times when sudo is needed when installing PECL extensions. This is because the wrong PECL is compiling the script (a PECL for a different version of PHP). Notes: I have come across errors with an extension API vs PHP API mismatch.
#Mamp for mac 10.7 pro
If you're running MAMP Pro and you don't see MongoDB, click on Server > PHP > Error handling > View Log to see what errors are occuring You should see information about your MongoDB extension. Now, restart your MAMP servers and phpinfo(). Insert extension=mongo.so somewhere (around line 540 on a standard installation php.ini). Once it's done, you'll want to edit php.ini (found under File > Edit Template > PHP > PHP 5.4.4 php.ini on MAMP Pro, /Applications/MAMP/conf/php/php5.4.4/php.ini on MAMP).
This could take a while to download and configure, make and install the extension. If you've setup your PATH variables correctly, all should be good to go: pecl install mongo You should see: /Applications/MAMP/bin/php/php5.4.4/bin/pecl configureīefore we install our first PECL extension, we need to double check we're loading the right PECL (as your mac comes built with PECL installed (under /usr/local/bin). Once you've downloaded and extracted the files, in Terminal navigate to the folder where you extracted the files and run the following commands.
#Mamp for mac 10.7 code
This will allow us to use the source code for building PECL (or in fact, most) PHP extensions: cd /Applications/MAMP/bin/php/php5.4.4/include/phpĭon't get excited yet - we need to download Autoconf. Jump into Terminal we're going to configure PHP for our local machine. Copy its contents to /Applications/MAMP/bin/php/php5.4.4/include/php (you will most likely have to create the include/php folders).
#Mamp for mac 10.7 archive
Now, unzip your archive in your Downloads folder. Navigate to php.net/releases/index.php and download the gzip archive. Firstly, we need to download the source code for PHP 5.4.4 (or your MAMP PHP version). PECL is a repository that holds a bunch of PHP extensions. PATH=/Applications/MAMP/bin/php/php5.4.4/bin:/Applications/MAMP/Library/bin:$PATH Open it up in your favourite text editor and put the following: # Add MAMP PHP installations Open up your home directory in Terminal and create a file called. Make sure you have installed MAMP Pro (It will be located under /Applications/MAMP). However, you can get away without MAMP Pro and it's not required for this tutorial. I'd recommend you purchase MAMP Pro, it will make your life a little easier every day and it's a fairly reasonable price. At the time of writing, the current version is 2.1.1. I should know, I need all three of them.įirstly, download MAMP & MAMP Pro.