首頁  >  文章  >  後端開發  >  ubuntu无法加载mcrypt (外链,英语) 扩展_PHP教程

ubuntu无法加载mcrypt (外链,英语) 扩展_PHP教程

WBOY
WBOY原創
2016-07-13 17:45:56836瀏覽

问题解决

1.安装apt-get install php5-mcrypt

2.编辑php配置文件vim /etc/php5/cgi/php.ini找到mcrypt并在下面添加红色行:

[mcrypt]
; For more information about mcrypt settings see http://php.net/mcrypt-module-open
; Directory where to load mcrypt algorithms
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;mcrypt.algorithms_dir=
mcrypt.algorithms_dir=/etc/bash_completion.d/mcrypt
3.添加完成后注意要重启fast-cgi:
root@Ubuntu:/# killall -9 php-cgi
root@Ubuntu:/# /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 20 -u nginx -g nginx -f /usr/bin/php5-cgi

作者“小白爱菜鸟”

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478630.htmlTechArticle问题解决 1.安装apt-get install php5-mcrypt 2.编辑php配置文件vim /etc/php5/cgi/php.ini找到mcrypt并在下面添加红色行: [mcrypt] ; For more information about mc...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn