Jump to Navigation

088 - How to install mcrypt for PHP in ubuntu

Initially ubuntu server (LAMP) does not  include mcrypt for PHP. To install it, the following steps need to be done.

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

 



Main menu 2

Story | by Dr. Radut