Installing PHPMyAdmin on Ubuntu 16.04 (Nginx)

Vinay Khobragade
1 min readAug 27, 2017

--

Installing phpmyadmin on ubuntu 16.04 — ngnix server

Installing PHPMyAdmin sometimes become painful. To have access to all the commands required, I am writing this post. We will install PHPMyAdmin on LEMP stack. LEMP stack contains Linux, Nginx, MySQL, and PHP.

Note that this process is not similar to the installation of PHPMyAdmin on LAMP stack. I will write a post on the installation of PHPMyAdmin with LAMP (Linux, Apache, MySQL, and PHP) stack as well. For now, let’s get into the title.

Ubuntu makes our life easier. To install PHPMyAdmin, just run the following in your terminal. To open the terminal press ctrl+alt+t

Step 1 — Install PHPMyAdmin

sudo apt-get install phpmyadmin

Now you will see two options. For our installation, we won’t select one of them. Press the tab button and enter OK. Enter password of MySQL when asked.

Step 2 — Setup PHPMyAdmin for NGINX

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

Step 3 — Boom! restart NGINX server

sudo systemctl restart nginx OR sudo service nginx restart 

Now you’ve PHPMyAdmin available on your server. You can check on localhost/phpmyadmin or yourhostname/phpmyadmin

Installing PHPMyAdmin on Ubuntu 16.04 (Nginx)

Originally published at zhow.in on August 27, 2017.

--

--