How To Install PhpMyAdmin On Ubuntu 20.04 LTS Using Repository


Properly, we are able to install phpMyadmin by manually downloading and setting its information together with Apache on Ubuntu. Nonetheless, it might be troublesome for just a few customers to undergo numerous steps to configure phpMyAdmin, as an alternative of that we are able to automate its set up using the phpMyadmin repository on Ubuntu 20.04 LTS Focal Fossa.

phpMyAdmin is an open-source net platform developed in PHP to handle MariaDB or MySQL database server by way of a graphical net interface. A lot of the internet hosting platforms include this database web-based administration software, already, nevertheless, if you’re using some non-public digital server or cloud internet hosting then you could want to install it manually. And right here on this article, we be taught that.




Steps to install phpMyAdmin using PPA repository on Ubuntu

1. Run system replace

Let’s first run the Ubuntu/Debian replace command to refresh the system repository cache.

sudo apt replace


2. Install MariaDB or MySQL (elective)

If you have already got the database server put in on the server or localhost the place you might be putting in the phpMyAdmin or simply need to use the PHPMyAdmin to handle some Database server out there on a distant server then you’ll be able to skip this step.

Install the one as per your alternative. 

For MariaDB

sudo apt install mariadb-server



sudo apt install mysql-server


3. Command to install phpMyAdmin on Ubuntu 20.04 LTS

Now, use the APT bundle supervisor to install and configure phpMyAdmin robotically, we are able to run the next single command. It would obtain, install and configure phpMyAdmin together with the Apache webserver.

The given command will install PHP & its extension together with Apache or Lighttpd net server.

sudo apt install phpmyadmin

Install phpMyAdmin command on Ubuntu 20.04

Configure Database (just for localhost):

If you’re using a Database server on your localhost the place you might be putting in the phpMyAdmin then kind the Sure possibility to create a database consumer to use with phpMyAdmin. Whereas, those that have a Database server on another distant machine ought to go for NO. See: How to entry distant MySQL database in native phpMyAdmin

Configure Database for phpMyAdmin

Choose Apache or Lighttpd

The PHPMyAdmin automation course of can even ask you to choose Apache or Lighttpd as a default net server. Sort 1 and hit Enter to go for Apache. Nonetheless, if you have already got an Apache server put in then it is going to robotically configure it to use.

Set Apache or lighttpd as web server


4. Verify or Begin Net server on Ubuntu 20.04

First, examine your Webserver whether or not it’s Apache or Lighttpd, is working superb or not. Right here we’re using Apache therefore we go for that.

service apache2 standing

If it’s not working already then execute the under two instructions:

sudo service apache2 begin
sudo service apache2 allow


5. Entry phpMyAdmin net interface

Now, open a browser on any system that may entry your Server Ip tackle or area the place you’ve got put in the phpMyAdmin.


To log in use username – phpmyadmin and password is the one you set in the course of the phpMyAdmin dbconfig setup.

Login PhpmyAdmin Automatic phpmyadmin repository installation on Ubuntu 20.04


6. Get well password, if overlook

Observe: When you forgot which consumer has been used to entry phpMyadmin and what’s its password? Then easy edit a file:

sudo nano /and many others/phpmyadmin/config-db.php

Recover phpmyadmin password


7. Add PPA repository for phpMyAdmin (elective)

Though there isn’t any want to add an extra repository to install phpMyAdmin on Ubuntu 20.04, it’s as a result of we have already got its packages out there within the Ubuntu official repository. Nonetheless, the model won’t be the newest one. Therefore to get the newer model, now we have to add the PPA repo manually. Listed below are the steps to observe, for many who need.

sudo add-apt-repository ppa:phpmyadmin/ppa
sudo apt replace
sudo apt improve

Sooner or later, if you’d like to install any new updates simply run the above-given improve command.


Different Articles:

• Install PhpMyAdmin on Docker to handle MariaDB or MySQL
• How to Install phpMyAdmin on Debian 11 Bullseye (Apache)
• Install phpMyAdmin on AlmaLinux 8 with Apache
• How to install phpMyAdmin on Rocky Linux 8 with Apache




Travel Guides

Travel Guides Buzz has breaking travel news, travel hotels, America travel guides, travel photos, latest travel news, Asia travel guides, Europe travel guides, Australia travel guides and all the trending buzz you’ll want to share with your friends. Copyright Travel Guides Buzz.

Related Articles

Back to top button