安裝phpmyadmin 3.1 版時,網頁出現這個錯誤
缺少 mcrypt 外掛。請檢查 PHP 設定
OS
CENTOS 6
CENTOS 7
解決
[PHP7+CentOS7]
# yum install epel-release
# yum install php70w-mcrypt
[PHP5+CentOS6]
可以安裝 epel 的套件來解決,可參考這篇:
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
# rpm -ivh epel-release-6-5.noarch.rpm
# yum --enablerepo=epel install php-mcrypt
檢查
# php -m | grep 'mcrypt'
mcrypt <空白代表沒裝成功>
有裝好了,重啟apache生效