使用
apt-get install php5-mcrypt
安装后还要进行
php5enmod mcrypt
原文
http://php.net/manual/zh/mcrypt.installation.php