Unable to load mcrypt extension, <br /> Please check the PHP configuration solution

  

About phpmyadmin prompts<;Unable to load mcrypt extension, <br /> Please check PHP configuration” error prompt, The main reasons are as follows. The following methods can be used to solve this problem.

1, Mysql database is not installed correctly, Mysql related services are not started in the system service (please check the method of correctly installing Mysql)

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

3. In the php.ini file in the C:\\windows directory, the previous “;” in “;extension=php_mcrypt.dll” is not removed, so the corresponding function cannot be used. The solution is to open the php.ini file to find; extension=php_mcrypt.dll changed to extension=php_mcrypt.dll //remove the previous one; make it effective

4, Mysql directory has no read permission, correct directory permissions As follows: administrator full control system Full control

user Read and run other user permissions are all deleted (can also be retained, but security is not high, it is recommended to delete), and then restart MYsql service and Web service (recommended to modify Restart the server after this item.) After you have tried the above methods, it still doesn't work. In fact, there is one more crucial step. There is very little on the Internet.

The solution, the author's PHP environment is windows server 2003 + IIS + PHP5 + MYSQL5, in fact, winxp is the same configuration.

Desktop → My Computer & Rarr; Right-click Properties & Rarr; Advanced & Rarr; Environment Variables & Rarr; System Variables & Rarr; New

Variable Name: phprc Variable Value: C:\\php (PHP is located The path to the directory)

Copyright © Windows knowledge All Rights Reserved