ubuntu14.04 安装mcrypt

13次阅读
没有评论

共计 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 其他无此问题.

正文完
 0
admin
版权声明:本站原创文章,由 admin 于2014-11-08发表,共计490字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
验证码