Menu Close

ubuntu14.04 安装mcrypt

环境是apt-get install php*..方式.
在安装Yii2的时候,检测发现,没有mcrypt.
在apt-get 的时候已经apt-get install mcrypt .
百思不得其解后,翻看手册.发现如下内容.

On Ubuntu 14.04 LTS using php5-fpm with Nginx, I had to symlink the mcrypt.ini to the correct location, and then restart php5-fpm and nginx.
#ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/fpm/conf.d/mcrypt.ini
#service php5-fpm restart
#service nginx restart
如果你使用的是FPM .
ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/fpm/conf.d/mcrypt.ini
把安装的mcrypt软连接到/etc/php5/fpm/conf.d/mcrypt.ini.
好像ubuntu有这个问题,debian 其他无此问题.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注