ubuntu16.04 lamp安裝包默認安裝的apache2、php7、mysql5.7,php、mysql都有升級。安裝lamp後安裝phpmyadmin,打開localhost/phpmyadmin,理想中的畫面並沒有出現而是出現錯誤

  1. error the mbstring extension is missing. please check your php configuration

安裝mbstring

  1. sudo apt install php-mbstring

重開啟apache2後重新打開phpmyadmin這次並沒有出現missing甚麼的了,不過葉面卻是空白。配置一下php.ini和apache.conf讓網頁顯示php語法錯誤,重開啟apache,再次打開phpmyadmin顯示

  1. Fatal error: require_once(): Failed opening required '/usr/share/php/php-gettext/gettext.inc' (include_path='.:/usr/share/php') in /usr/share/phpmyadmin/libraries/select_lang.lib.php on line 477

無法開啟原因是 php-gettext失敗,看/usr/share/php目錄下有沒有此php-gettex檔案。

沒有時,執行安装php-gettex

  1. sudo apt install php-gettext

重開啟apache,網頁登錄phpmyadmin成功。

arrow
arrow
    全站熱搜

    鴻雁3c電腦店 發表在 痞客邦 留言(0) 人氣()