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

后端 未结 6 1227
感情败类
感情败类 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:32

    OK, if you have already installed packages php-mbstring and php-gettext and it still doesn't work, first take a look to Apache logs:

    tail /var/log/apache2/error.log
    

    If you find something like this:

    Fatal error: Uncaught Twig_Error_Syntax: Unexpected "apply" tag (expecting closing tag for the "if" tag defined near line 17). in /usr/share/phpmyadmin/templates/columns_definitions/column_virtuality.twig on line 17

    This is a known bug in phpmyadmin 4.9.4

    The bug has been fixed in phpmyadmin 4.9.5 but please note that if you are under Debian 10 Buster you will need to upgrade the package php-twig to an higher version rather than the one included with Buster, or package phpmyadmin will be kept back to 4.9.4 during system upgrades.

    You can simply upgrade php-twig from next Debian version (11, Bullseye)

    apt-get install php-twig/bullseye
    

    This worked for me. Hope this doesn't broke something else in Deb 10 LAMP setup.

提交回复
热议问题