search
Homephp教程php手册phpmyadmin无法加载mcrypt问题解决方法

phpmyadmin无法加载mcrypt问题解决方法

Jun 13, 2016 am 09:46 AM
mcryptphpphpmyadminloadexistOpenhintmethodhoursolvequestion

今天在打开phpmyadmin时提示:phpMyAdmin出现无法载入 mcrypt 扩展,请检查PHP配置,下面我来给大家一起来看看无法载入 mcrypt问题解决办法。


你打开phpmyadmin就会提示 :无法载入 mcrypt 扩展,请检查 PHP 配置错误

出现以下几种情况后可能会造成运行phpmyadmin程序 提示“无法载入 mcrypt 扩展,
请检查 PHP 配置”的 错误提示


windows解决办法

1、没有正确安装Mysql数据库,在系统服务中Mysql相关的服务没有启动   (请查看正确安装Mysql的方法)

2、在系统的 system32(C:windowssystem32) 目录下缺少 libmcrypt.dll文件,解决方法是找到php目录下的libmcrypt.dll,并将libmcrypt.dll复制到C:windows system32目录中,然后重新启动Web服务。

3、在C:windows目录下的php.ini文件中,没有将“;extension=php_mcrypt.dll”中的前面一个“;”去 掉,所以不能使用相应功能,解决方法是打开php.ini文件

 代码如下 复制代码

找到

;extension=php_mcrypt.dll

改成

extension=php_mcrypt.dll    //去掉前面的;使之生效


linux系统下解决办法

一:无法加载 mcrypt扩展,请检查您的 PHP 配置

 

 代码如下 复制代码

 
sudo  apt-get install libmcrypt4 php5-mcrypt    //安装libmcrypt

  
sudo /etc/init.d/apache2  restart     //重启apache

二:配置文件现在需要一个短语密码


1、用编辑器打开目录phpmyadmin/libraries中的config.default.php文件

2、查找下面这行:$cfg['blowfish_secret'] = ‘这里就是需要的短语密码’;(短语密码请随意填写)

会出现这个问题,是在配置phpmyadmin填写认证方法时,即下面这行:

$cfg['Servers'][$i]['auth_type'] = ‘cookie’;

在此有四种模式可供选择,cookie,http,HTTP,config

config方式即输入phpmyadmin的访问网址即可直接进入,无需输入用户名和密码,是不安全的,不推荐使用。

当该项设置为cookie,http或HTTP时,登录phpmyadmin需要数据用户名和密码进行验证,,具体如下:

PHP安装模式为Apache,可以使用http和cookie;

PHP安装模式为CGI,可以使用cookie

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor