Home » Categories » Multiple Categories

How To Install phpMyAdmin on a LEMP server

About phpMyAdmin

phpMyAdmin is a free software to work with MySQL on the web—it provides a convenient visual front end to the capabilities of MySQL.

Setup

Prior to installing phpMyAdmin, be sure that you have LEMP installed on your server. If you do not, you can see how to do that here.
Once you have finished installing LEMP on your virtual private server, you can start on installing phpMyAdmin.

Step One—Install phpMyAdmin

Start off by downloading the program from apt-get.
sudo apt-get install phpmyadmin
During the installation, phpmyadmin will ask you if you want to configure the database with dbconfig. Go ahead and choose yes.
Input MySQL’s database password when prompted and click ok.
When phpmyadmin prompts you to choose a server (either apache or lighttpd) hit tab, and select neither one.

Step Two—Configure phpMyAdmin

You now have phpMyAdmin installed on your server. In order to access it, you need to take one more step.
Create a symbolic link between phpMyAdmin and your site’s directory. If you were using the previous tutorial, it may be still located in the nginx default directory, otherwise link it with the appropriate place:
sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/www
Restart nginx:
sudo service nginx restart
You should now be able to access phpMyAdmin by going to yourdomain/phpmyadmin. The screen will look like this.
Log in with your MySQL username and password.
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How To Configure and Maintain Ghost from the Command Line
Viewed 7324 times since Sun, Dec 29, 2013
How To Install (LEMP) nginx, MySQL, PHP stack on Arch Linux
Viewed 14363 times since Sun, Dec 29, 2013
How To Install nginx on Ubuntu 12.04 LTS
Viewed 3413 times since Tue, Dec 24, 2013
An Introduction to Linux Basics
Viewed 7120 times since Fri, Dec 27, 2013
How To Use Dokku Plugins to Access Additional Functionality
Viewed 5320 times since Sun, Dec 29, 2013
How To Create An Off-Site Backup Of Your Site With Rsync On Centos 6
Viewed 6574 times since Sat, Jan 4, 2014
Installing and Using the Vim Text Editor on a Cloud Server
Viewed 3217 times since Fri, Dec 27, 2013
How To Configure Varnish for Drupal with Apache on Debian and Ubuntu
Viewed 7947 times since Thu, Jan 2, 2014
How To Install Node.js with NVM (Node Version Manager) on Server
Viewed 4520 times since Sun, Dec 29, 2013