There is still no extension after apt-getinstallphp5-mcrypt, is it set somewhere?

Source: Internet
Author: User
Tags mcrypt
{Code...} after I installed it, The mcrypt extension is not displayed in $ php-m. Do I need to set it further or what is going on?
$ apt-get install php5-mcrypt

After installation$ php -mThe mcrypt extension is not displayed in. Do you need to set it further or what is going on?

Reply content:
$ apt-get install php5-mcrypt

After installation$ php -mThe mcrypt extension is not displayed in. Do you need to set it further or what is going on?

cd /etc/php5/cli/conf.dsudo ln -s ../../mods-available/mcrypt.ini 20-mcrypt.ini

Ubuntu does not know why. Currently, the mcrypt extension is installed without a configuration file by default, so you have to manually soft the link once.

Source:
Install php5-mcrypt

sudo apt-get install php5-mcrypt

Edit the php configuration file

sudo gedit /etc/php5/apache2/php.ini 

Add it under extension (any independent row will work)

Extension = php_mcrypt.so (the original php5-mcrypt.so is invalid)

Save and restart apache2

sudo /etc/init.d/apache2 restart

Source: http://wiki.ubuntu.org.cn/Apache

Php-m Displays the configuration of the command line PHP.

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.