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

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

    Ensure that your PHP version matches the used PHP module in Apache2:

    php -v  //PHP 7.4.4 
    ls -d /etc/apache2/mods-enabled/php*.conf // php7.3.conf
    
    sudo a2dismod php7.3  // disable 7.3
    sudo a2enmod php7.4   // enable 7.4
    sudo systemctl restart apache2
    

    I installed the php-mbstring php-gettext (also excplicitly for latest PHP version), but it still wasn't working. At least it took me hours until I noticed apache decides itself what PHP version is used.

提交回复
热议问题