ubuntu 14.0.4 The mcrypt extension is missing. Please check your PHP configuration.
在 ubuntu 14.0.4中安裝 phpmyadmin 發生缺少 mcrypt 問題,google了一下得知需要下幾個指令才能解決,方式如下
The mcrypt extension is missing. Please check your PHP configuration.
安裝php5-mcrypt
apt-get install php5-mcrypt
更新db
updatedb
查詢 mcrypt.ini 位置
locate mcrypt.ini
/etc/php5/mods-available/mcrypt.ini
查詢 mcrypt.so位置
locate mcrypt.so
/usr/lib/php5/20121212/mcrypt.so
建立連結
ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
apache2服務重啟
service apache2 restart
The mcrypt extension is missing. Please check your PHP configuration.
安裝php5-mcrypt
apt-get install php5-mcrypt
更新db
updatedb
查詢 mcrypt.ini 位置
locate mcrypt.ini
/etc/php5/mods-available/mcrypt.ini
查詢 mcrypt.so位置
locate mcrypt.so
/usr/lib/php5/20121212/mcrypt.so
建立連結
ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
apache2服務重啟
service apache2 restart
留言
張貼留言