Home  >  Article  >  Backend Development  >  Ubuntu cannot load mcrypt (external link, English) extension_PHP tutorial

Ubuntu cannot load mcrypt (external link, English) extension_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:45:56836browse

Problem Solved

1. Install apt-get install php5-mcrypt

2. Edit the php configuration file vim /etc/php5/cgi/php.ini to find mcrypt and add the red line below:

[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. After the addition is completed, be sure to restart 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

Author "Xiaobai loves rookie"

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478630.htmlTechArticleProblem Solution 1. Install apt-get install php5-mcrypt 2. Edit the php configuration file vim /etc/php5/ Find mcrypt in cgi/php.ini and add the red line below: [mcrypt] ; For more information about mc...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn