Ubuntu14php5.5 is mcrypt extended?

Source: Internet
Author: User
This article describes the ubuntu14php5.5 install mcrypt extension of the detailed details of the text, there is a certain reference value, together with a look at the installation of 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

If there is no mcrypt extension in your phpinfo after the restart:

Solution 1:

Cd/etc/php5/cli/conf. dsudo ln-s.../mod-available/mcrypt. ini 20-mcrypt.ini

Solution 2:

Cd/etc/php5/cli/conf. dsudo ln-s .. /.. /mods-available/mcrypt. ini 20-mcrypt.iniphp5enmod mcryptservice apache2 restartps: for Ubuntu, the simple installation of the php5-mcrypt does not work properly, you need to run the above solution two command to root users to enable it;

The above section describes how to install the mcrypt extension in ubuntu14php5.5. For more information, see other related articles in the first PHP community!

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.