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

Source: Internet
Author: User
When phpmyadmin is running today, the system prompts that the mcrypt extension cannot be loaded. After troubleshooting, it turns out to be a php configuration problem. Unable to load mcrypt extension,
Check PHP configuration
In the following situations, you may run the phpmyadmin program and prompt "the mcrypt extension cannot be loaded,
Please check the PHP configuration error prompt

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.