The problem is with the php5-mcrypt package. It puts the mcrypt.ini file in the /etc/php5/conf.d directory which is no longer correct because apache2 and cli have their own conf.d directory.
Here's the fix.
mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/ sudo php5enmod mcrypt sudo service apache2 restart
The problem is with the php5-mcrypt package. It puts the mcrypt.ini file in the /etc/php5/conf.d directory which is no longer correct because apache2 and cli have their own conf.d directory.
Here's the fix.
mv -i /etc/php5/ conf.d/ mcrypt. ini /etc/php5/ mods-available/
sudo php5enmod mcrypt
sudo service apache2 restart