Install php5-mcrypt on Ubuntu

I want to install the mcrypt on vagrant machine.

The OS is Ubuntu.

Which is the command?

can try like this,this is as per document

apt-get install php5-mcrypt
mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/
php5enmod mcrypt
service apache2 restart