Internal server error (HTTP Error 500) after installing phpmyadmin on a certain domain

后端 未结 6 1228
感情败类
感情败类 2021-02-04 20:07

I\'m getting internal server error (HTTP Error 500) after installing phpmyadmin on a certain domain.

This is what my config.inc.php file currently reads

6条回答
  •  再見小時候
    2021-02-04 20:35

    I know it has been a couple of years, and I noticed by your comments that still no luck. Here I run into the same 500 error after installing through apt. I look for my Apache error log file (/var/log/apache2/error.log), and there was the following entry:

    [Thu Aug 11 22:38:25.930453 2016] [:error] [pid 18138] [client ::1:35026] PHP 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
    

    It shows that the library gettext was not found, so I intalled it:

    sudo apt-get install  php-gettext
    

    And restarted Apache:

    sudo service apache2 restart
    

    That worked for me. Hope it helps. PS: If still not working you may try to sym link the folder just in case:

    sudo ln -s /usr/share/phpmyadmin /var/www/
    

提交回复
热议问题