共计 490 个字符,预计需要花费 2 分钟才能阅读完成。
环境是 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 其他无此问题.
正文完