Installing phpmyadmin with nginx server on ubuntu

Author: Al-mamun Sarkar Date: 2020-07-20 13:31:04

In this lesson, I will show you how to install phpmyadmin with your nginx and mysql on a ubuntu computer.

 

Installing phpmyadmin:

sudo apt update
sudo apt install phpmyadmin

 

During the installation it will ask you to choose a web server, Don't select anything because nginx server is not included here. Just press tab and Ok to next step.

 

Linking phpmyadmin:

sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

 

Now visit to use phpmyadmin:

https://server_domain_or_IP/phpmyadmin

 

For Localhost:

http://localhost/phpmyadmin

 

If it doesn't work add following code to nginx virtual host.

location /phpmyadmin {
     index index.php index.html index.htm;
     root /usr/share;
}