Alex Biddle     About     Archive     Feed

Enable / install mcrypt PHP5 Ubuntu

I had installed all of the mcrypt packages for Ubuntu that I found with:

sudo apt-cache search mcrypt php5

But was still getting:

Call to undefined function: mcrypt_get_iv_size ...

Some mistake surely?

Then I remembered that PHP5 switched to a similar model to Apache sites-available/sites-enabled. You need to do:

sudo php5enmod mcrypt
sudo service apache2 graceful

To enable the module.