install php mcrypt on apache server on Mac and Ubuntu
Installing php mcrypt on Mac
1. Update port
[code language=”shell”]
sudo port -v selfupdate
[/code]
2. Install mcrypt
[code language=”shell”]
sudo port install php54-mcrypt
[/code]
3. Open /etc/php.ini and append this line to it.
[code language=”shell”]
extension=/opt/local/lib/php54/extensions/no-debug-non-zts-20100525/mcrypt.so
[/code]
4. Restart apache
[code language=”shell”]
/usr/sbin/apachectl restart
[/code]
mcrypt should now be showing up on the phpinfo page.
Installing php mcrypt on Ubuntu
1. Update apt-get packages
[code language=”shell”]
sudo apt-get update
[/code]
2. Install mcrypt
[code language=”shell”]
sudo apt-get install php5-mcrypt
[/code]
3. Restart apache
[code language=”shell”]
/etc/init.d/apache2 restart
[/code]
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 ;
[code language=”shell”]
extension=mcrypt.so
[/code]
Search within Codexpedia

Search the entire web
