Phpmyadmin cannot load mcrypt solution

Source: Internet
Author: User
Tags mcrypt
When phpmyadmin is enabled, the system prompts that the mcrypt extension cannot be loaded. check that the PHP configuration is incorrect. in the following cases, the phpmyadmin program running may prompt "the mcrypt extension cannot be loaded, please check the PHP configuration error prompt

When phpmyadmin is enabled, the system prompts that the mcrypt extension cannot be loaded. check that the PHP configuration is incorrect. in the following cases, the phpmyadmin program running may prompt "the mcrypt extension cannot be loaded, please check the PHP configuration error prompt

Windows solution

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: windowssystem32) 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. in the C: windows directory, php. 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

; Replace extension = php_mcrypt.dll with extension = php_mcrypt.dll, and remove the previous one to make it take effect.

Solution in linux

I. unable to load the mcrypt extension. Please check your PHP configuration

Sudo apt-get install libmcrypt4 php5-mcrypt // install libmcrypt

Sudo/etc/init. d/apache2 restart // restart apache

2. a phrase password is required for the configuration file.

1. open the config. default. php file in the phpmyadmin/libraries directory in the editor.

2. search for the following line: $ cfg ['blowfish _ secret'] = 'here is the required phrase password'; (enter the phrase password at will) this problem will occur, when phpmyadmin is configured to fill in the authentication method, that is, the following line: $ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';

There are four modes available here: cookie, http, HTTP, config

In config mode, you can directly access the phpmyadmin access url without entering the user name and password. it is insecure and is not recommended.

When this option is set to cookie, http or HTTP, you need to use the data username and password for verification to log on to phpmyadmin. for details, refer to the following: PHP installation mode is Apache, and http and cookie can be used; the PHP installation mode is CGI. you can use cookies.

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.