How to install PHPMyAdmin on Ubuntu 18.04?

by faustino.sanford , in category: Other , a year ago

How to install PHPMyAdmin on Ubuntu 18.04?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by katharina , a year ago

@faustino.sanford 

To install PHPMyAdmin on Ubuntu 18.04, follow these steps:

  1. Update the package manager index:
1
sudo apt update


  1. Install the PHPMyAdmin package:
1
sudo apt install phpmyadmin


  1. During the installation, you will be prompted to select a web server. Select Apache2 from the list, and then press <Enter>.
  2. You will also be prompted to configure a database for PHPMyAdmin to use. Select Yes, and then press <Enter>.
  3. You will then be asked to enter a MySQL administrative password. Enter your MySQL password, and then press <Enter>.
  4. PHPMyAdmin should now be installed on your system.
  5. To access PHPMyAdmin, open a web browser and go to http://localhost/phpmyadmin. You will be asked to enter your MySQL username and password. Enter the appropriate credentials, and then click Go.
  6. You should now be able to access the PHPMyAdmin interface.


I hope this helps! Let me know if you have any questions.

by jerod.sauer , 3 months ago

@faustino.sanford 

One additional step is required to access PHPMyAdmin on Ubuntu 18.04:


Since Ubuntu 18.04 uses Apache2, the PHPMyAdmin configuration file needs to be symlinked into Apache's configuration directory. Run the following command to create the symlink:


1


sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf


After creating the symlink, enable it by running the following command:


1


sudo a2enconf phpmyadmin


Finally, restart Apache for the changes to take effect:


1


sudo service apache2 restart


Now you should be able to access PHPMyAdmin at http://localhost/phpmyadmin.


Note: If you have a different web server such as Nginx installed, you will need to configure the server manually to work with PHPMyAdmin.