Archive - PHP RSS Feed

Single Sign On Demo and Code

Http Dev Client Demo

Installing PHP Extension Mcrypt on Mac OS 10.7

Today I needed to install the Mcrypt PHP Extension on my Mac running OS 10.7 and PHP 5.4.10.  I had to piece together directions from a number of sites and so I’m outlining them here in case anyone else finds this useful:

1. Make a new directory called “mcrypt”

2. Download mcrypt from here

3. Download the php binary file for the php version you are running

4. Move both of these unzipped downloads to the “mcrypt” folder you created

5. Open Terminal, type:

 cd libmcrypt-2.5.8 
  sudo make install 

6.  Libmcrypt is now configured but now it’s necessary to make the mcrypt extension

7. In Terminal:

 cd ../php-5.4.10/ext/mcrypt  

8. You should see:

Configuring for:

PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525 

9. Type:

 sudo make install  

10. You should see:

Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20100525/ 

11. Open you php.ini file and add the following line: 

That’s it!


Webhooks, Formstack & Fellowship One

Fellowship One API Guest Entry