How to install phpMyAdmin on Ubuntu?


by ryleigh , in category: Third Party Scripts , a year ago

How to install phpMyAdmin on Ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by dalton_moen , a year ago


To install phpMyAdmin on Ubuntu, you can follow these steps:

  1. Update the package index on your system:
sudo apt update

  1. Install phpMyAdmin using the following command:
sudo apt install phpmyadmin

During the installation process, you will be prompted to choose the web server you want to configure. You can select either Apache or Nginx, and press Enter.

  1. After selecting the web server, you will be asked to set up the database for phpMyAdmin using dbconfig-common. Choose Yes, and provide the password for the MySQL root user when prompted.
  2. Next, you need to configure the PHPMyAdmin installation to work with the PHP installation on your Ubuntu. Open a new terminal window and enter the following command:
sudo phpenmod mbstring

  1. Restart the Apache web server using the command:
sudo systemctl restart apache2

  1. You can now access phpMyAdmin by opening a web browser and entering the following URL:

That's it! You have successfully installed phpMyAdmin on Ubuntu.