install php mcrypt on apache server on Mac and Ubuntu

Installing php mcrypt on Mac
1. Update port

sudo port -v selfupdate

2. Install mcrypt

sudo port install php54-mcrypt

3. Open /etc/php.ini and append this line to it.

extension=/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mcrypt.so

4. Restart apache

/usr/sbin/apachectl restart

mcrypt should now be showing up on the phpinfo page.

Installing php mcrypt on Ubuntu

1. Update apt-get packages

sudo apt-get update

2. Install mcrypt

sudo apt-get install php5-mcrypt

3. Restart apache

/etc/init.d/apache2 restart

mcrypt should now be showing up on the phpinfo page, if not make sure this line is in the php.ini file without the semi-colon ;

extension=mcrypt.so

Search within Codexpedia

Custom Search

Search the entire web

Custom Search