Ubuntu cannot load mcrypt (outside the chain, English) extended _php tutorial

Source: Internet
Author: User
Tags mcrypt
Problem solving

1. Installing Apt-get Install Php5-mcrypt

2. Edit the PHP configuration file Vim/etc/php5/cgi/php.ini 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. Note To restart fast-cgi after adding:
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

The author "Little White Love Rookie"

http://www.bkjia.com/PHPjc/478630.html www.bkjia.com true http://www.bkjia.com/PHPjc/478630.html techarticle problem solving 1. Installing Apt-get install Php5-mcrypt 2. Edit the PHP configuration file Vim/etc/php5/cgi/php.ini find MCrypt and add the red line below: [MCrypt]; For more information about MC ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.