How to install mcrypt for PHP in ubuntu

apt-get install php5-mcrypt
/etc/init.d/apache2 restart

Sometimes you might get the message “php5-mcrypt is already the newest version“. If so, install with:

apt-cache search php5-m
php5-mapscript – php5-cgi module for MapServer
php5-mcrypt – MCrypt module for php5
php5-memcache – memcache extension module for PHP5
php5-ming – Ming module for php5
php5-mhash – MHASH module for php5
php5-mysql – MySQL module for php5
php5-sybase – Sybase / MS SQL Server module for php5

apt-get –reinstall install php5-mcrypt
/etc/init.d/apache2 restart

Leave a Reply

Your email address will not be published. Required fields are marked *