缺乏 mcrypt 擴展。請檢查 PHP 配置。(phpmyadmin)

找到php.iniphp

pz@pz:~$ sudo find / -name php.ini -print
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini

打開php.inisql

pz@pz:~$ sudo gedit /etc/php5/apache2/php.ini 

增長一句話apache

extension=mcrypt.so

重啓apache2ide

pz@pz:~$ sudo service apache2 restart 

搞定。spa

缺乏其餘擴展也能夠這樣作,加的話稍微改變一下就好了。rest

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
相關文章
相關標籤/搜索