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 Install Opigno on Debian 7 with Git and Drush
Viewed 4404 times since Sat, Jan 4, 2014
How To Migrate a MySQL Database Between Two Servers
Viewed 3406 times since Thu, Dec 26, 2013
How To Perform Basic Queries in MySQL and MariaDB on a Cloud Server
Viewed 2752 times since Thu, Jan 2, 2014
How To Setup a Rails 4 App With Apache and Passenger on CentOS 6
Viewed 4161 times since Thu, Dec 19, 2013
How To Use Yaourt to Easily Download Arch Linux Community Packages
Viewed 4651 times since Fri, Dec 27, 2013
How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Arch Linux
Viewed 5049 times since Fri, Dec 27, 2013
How To Use SuExec in Apache to run CGI Scripts on an Ubuntu
Viewed 4121 times since Mon, Dec 30, 2013
Intermediate Sed: Manipulating Streams of Text in a Linux Environment
Viewed 10599 times since Fri, Dec 27, 2013
How To Set Up mod_security with Apache on Debian/Ubuntu
Viewed 4640 times since Thu, Dec 26, 2013
How To Install and Use PostgreSQL on Ubuntu 12.04
Viewed 6735 times since Mon, Dec 30, 2013