mCrypt not present after Ubuntu upgrade to 13.10

I think I found the solution at launchpad.net.

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart

This worked for me.


I had this problem with Ubuntu 14.04 and I did the following to resolve it:

sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt

sudo service apache2 restart

I also have this problem with Ubuntu 14.04 after install.

First enable the mcrypt

sudo gedit /etc/php5/apache2/php.ini

Add this command in any line

extension=mcrypt.so

Create conf.d folder in /etc/php5

sudo mkdir conf.d

And inside that folder create mcrypt.ini file

sudo gedit mcrypt.ini 

Then add this command to that file

extension=mcrypt.so

Then create a link to file

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available

Enable mcrypt module

sudo php5enmod mcrypt

Restart apache

sudo service apache2 restart