How do I access phpMyAdmin?

Linode Staff

How do I access phpMyAdmin on my Linode?

6 Replies

phpmyadmin isn't installed on Linodes by default, but you can install it from your distribution's package manager using a command like one of the following:

sudo apt -y install phpmyadmin #Debian/Ubuntu systems
sudo yum -y install phpmyadmin #RedHat/CentOS systems

On a Debian/Ubuntu system, you can also automate the installation in a script with the following commands:

echo 'phpmyadmin phpmyadmin/dbconfig-install boolean true' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/mysql/admin-pass password $DBROOT_PASSWORD' | debconf-set-selections
echo 'phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2' | debconf-set-selections
sudo apt-get install -y phpmyadmin

Once you've completed the installation, you can access phpmyadmin via a web browser via a URL like https://your.linodes.ip.address.or.domain/phpmyadmin

Perhaps this information is outdated. I get:

kushsudo@li1004-169:/$ sudo apt -y install phpmyadmin
[sudo] password for kushsudo:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package phpmyadmin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'phpmyadmin' has no installation candidate

Can someone help?

Your distro is probably EOL. If you're using an Ubuntu version that's doesn't end in .04, it's not supported anymore. Ditto for Debian < 9.

-- sw

Scroll to "Setting Up phpMyAdmin" in:

Worked fine for me with Ubuntu 20.4.

Thanks for the information!

What's the version of your distro? If it's Ubuntu 20.10, it's probably end-of-life (EOL). You need to install a supported version. See:

If it's Debian and not 9 or 10, it's probably end-of-life. You need to upgrade to Debian 10.

Ubuntu especially is very quick to withdraw support for packages once a version is EOL.

Also, have you done an apt update recently?

-- sw


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct