Report this

What is the reason for this report?

http error 500 after installing phpmyadmin. Digitalocean

Posted on January 19, 2022

Hi! I need help accessing /phpmyadmin. Have not installed it before on an IP adress, since I’m new at DO and have only been playing around in localhost. I just deployed my site and where supposed to access my database through phpmyadmin, but got stuck at a http 500 error. Thankfull for all the help I can get.

We did a new systemlink: sudo ln -s /usr/share/phpmyadmin/ /var/www/html/phpmyadmin

We restarted nginx: sudo service nginx restart

ipadress/phpmyadmin: “This page isnt working” http 500 error”

Search for error: tail -f /var/log/nginx/error.log

Error we got:
#0 /usr/share/phpmyadmin/libraries/classes/Url.php(206): PhpMyAdmin\Url::getArgSeparator()
#1 /usr/share/phpmyadmin/libraries/classes/Url.php(169): PhpMyAdmin\Url::getCommonRaw()
#2 /usr/share/phpmyadmin/libraries/classes/Core.php(749): PhpMyAdmin\Url::getCommon()
#3 /usr/share/phpmyadmin/libraries/classes/Core.php(330): PhpMyAdmin\Core::linkURL()
#4 /usr/share/phpmyadmin/libraries/classes/Core.php(353): PhpMyAdmin\Core::getPHPDocLink()
#5 /usr/share/phpmyadmin/libraries/classes/Core.php(973): PhpMyAdmin\Core::warnMissingExtension()
#6 /usr/share/phpmyadmin/libraries/common.inc.php(106): PhpMyAdmin\Core::checkExtensions()
#7 /usr/share/phpmyadmin/index.php(27): require_once('...')
#8 {main}
  thrown in /usr/share/phpmyadmin/libraries/classes/Url.php on line 253" while reading response header from upstream, client: 62.84.204.10, server: localhost, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "164.92.226.35"

We have gave this phpmyadmin folders these permissions: chmod 755 -R /usr/share/phpmyadmin chmod 644 /etc/phpmyadmin/config.inc.php

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.