This article describes the ubuntu14php5.5 install mcrypt extension of the detailed details of the text, there is a certain reference value, together with a look at the installation of php5-mcrypt
Sudo apt-get install php5-mcrypt
Edit the php configuration file
Sudo gedit/etc/php5/apache2/php. ini
Add it under extension (any independent row will work)
Extension = php_mcrypt.so (the original php5-mcrypt.so is invalid)
Save and restart apache2
Sudo/etc/init. d/apache2 restart
If there is no mcrypt extension in your phpinfo after the restart:
Solution 1:
Cd/etc/php5/cli/conf. dsudo ln-s.../mod-available/mcrypt. ini 20-mcrypt.ini
Solution 2:
Cd/etc/php5/cli/conf. dsudo ln-s .. /.. /mods-available/mcrypt. ini 20-mcrypt.iniphp5enmod mcryptservice apache2 restartps: for Ubuntu, the simple installation of the php5-mcrypt does not work properly, you need to run the above solution two command to root users to enable it;
The above section describes how to install the mcrypt extension in ubuntu14php5.5. For more information, see other related articles in the first PHP community!