PHPextension "mcrypt" mustbeloaded.

Source: Internet
Author: User
Tags mcrypt yum repolist
PHPextensionmcryptmustbeloaded. an error is prompted when magento is installed:

PHP extension "mcrypt" must be loaded.



Then yum install mcypt * does not find any package ....



Find another method.


I used to introduce new extension libraries.


Open URL: http://mirrors.sohu.com/fedora-epel/6/i386/ use Ctrl + F search keyword "epel-release" find the latest extension package found latest version: epel-release-6-8.noarch.rpm


Then run the following command:

rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm


There will be some errors, regardless of him.


Then, run the following command:

yum update


There is a small problem in the middle:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Run vi/etc/yum. repos. d/epel. repo to uncomment the three baseurls in the file and comment out the three referers.


Then, run the following command:

yum repolist

Display if:

Epel Extra Packages for Enterprise Linux 6-i386

Indicates that the extension Library is successfully installed.


After the extension Library is installed, you can directly use yum to install it.



Run the following command:
yum install php-mcrypt


OK.

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.