The mcrypt extension cannot be loaded. Check the PHP configuration ultimate solution.

Source: Internet
Author: User
Tags mcrypt

The mcrypt extension cannot be loaded. <br/> check the PHP configuration.
In the following situations, the error message "unable to load mcrypt extension, <br/> check PHP configuration" may occur when you run the phpmyadmin program.

1. the Mysql database is not correctly installed, and Mysql-related services are not started in the System Service (please check the correct method for installing Mysql)

2. libmcrypt is missing in the system32 (C: \ windows \ system32) Directory of the system. dll file. The solution is to find libmcrypt under the php Directory. dll, and libmcrypt. copy the dll to the C: \ windows \ system32 directory and restart the Web service.

3. php In the C: \ windows Directory. in the INI file, the previous ";" in "; extension = php_mcrypt.dll" is not removed, so the corresponding function cannot be used. The solution is to open php. INI File
Find
; Extension = php_mcrypt.dll
Change
Extension = php_mcrypt.dll // remove the previous one to make it take effect.

4. the Mysql directory has no read permission. The correct directory permission is as follows:
Full administrator control
Full system control

User reading and running
All other user permissions can be deleted (or retained, but the security is not high. We recommend that you delete them), and then restart the MYsql service and Web Service (we recommend that you modify this item and then restart the server)
After trying all the methods, you still can't do it. In fact, there is still another step. I rarely say on the Internet that the solution is WINXP + IIS + PHP5 + MYSQL5.

Desktop> my computer> right-click Properties> advanced> environment variables> system variables> New

Name: phprc
Value: d: \ php (what directory is your 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.