Home > Database > Mysql Tutorial > body text

Linux 下 phpMyAdmin 加载mcrypt 扩展

WBOY
Release: 2016-06-07 16:58:37
Original
1043 people have browsed it

在Linux下安装phpMyAdmin 的时候,登陆进去后,显示 ldquo;无法载入 mcrypt 扩展,请检查 PHP 配置!!!rdquo; 根据以前的

  在Linux下安装phpMyAdmin 的时候,登陆进去后,显示 “无法载入 mcrypt 扩展,请检查 PHP 配置!!!”

  根据以前的经验肯定是少编译了一个模块,后来google搜索一下,是因为少了一个 libmcrypt 的软件包,解决过程如下:

  需要安装libcrytp,,libmarypt下载在Linux公社(LinuxIDC.com)的1号服务器。

FTP地址:ftp://www.linuxidc.com

用户名:

密码:

在2011年LinuxIDC.com\1月\Linux 下 phpMyAdmin 加载mcrypt 扩展 \

具体下载方法见 与

  下载libcrytp后开始安装:

  tar -zxvf libmcrypt-2.5.7.tar.gz

  cd libmcrypt-2.5.7

  ./configure

  make

  make install

或者利用yum直接安装更简单了

yum -y install libmcrypt

yum -y install libmcrypt-devel

  然后再重新编译PHP,加上编译参数:--with-mcrypt

./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-force-cgi-redirect --enable-cgi --with-mcrypt --with-freetype-dir=/usr/lib --with-zlib --with-gd --with-gettext --with-gdbm --enable-mbstring --enable-sockets

dedecms系统验证码5.6不显示的问题可能还有libfreetype库没有安装的问题,需要

yum -y install libfreetype

yum -y install freetype-devel

yum -y install freetype

  测试下是否编译成功:

  [root@localhost php-5.2.4]# /usr/local/php/bin/php -m | grep mcrypt

  mcrypt

  别忘了重新启动apache!!!!

  再次进入phpmyadmin后,没有出现警告信息! OK,成功!

linux

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!