mcrypt on Ubuntu Server

I tried installing Prestahop and Laravel on an Ubuntu Server and it was telling me mcrypt function cannot be called.

Tried doing this but it said it was already installed
sudo apt-get install php5-mcrypt

I finally edited php.ini adding
extension=mcrypt.so

It could have been done using this too i guess
sudo php5enmod mcrypt

It’s kinda weird why this wasn’t enabled by default.

Leave a Reply

Your email address will not be published. Required fields are marked *