How to install phpMyAdmin on Ubuntu?

Member

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

@ryleigh 

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

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


  1. Install phpMyAdmin using the following command:
1
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:
1
sudo phpenmod mbstring


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


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


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