Installing phpMyAdmin - Control Panel Login

42 downloads 195 Views 274KB Size Report
phpMyAdmin is a free, php and web browser based, open source, administration tool for MySQL. If your web application or website requires MySQL database, ...
Installing phpMyAdmin

phpMyAdmin is a free, php and web browser based, open source, administration tool for MySQL. If your web application or website requires MySQL database, it is recommended that you install phpMyAdmin for easier database management.

Hosting Requirements PHP, MySQL Server & Client. Note: * This documentation assumes you've already installed the LAMP stack on your VPS. If you haven't done that yet, refer to the LAMP installation guide. * Ensure that you are connected to the server using an SSH client as a "root" user. * You need not follow this documentation, in case you have installed cPanel or Plesk. phpMyAdmin comes pre-installed with these panels.

Step I - Setup MySQL Let us first get the MySQL server running. You need to run service mysqld start for this.

You can confirm the service status by using service mysqld status, as shown below.

Installing phpMyAdmin

Page 1

Installing phpMyAdmin

Step II - MySQL User setup We will now have to set the MySQL server's root password. (This is the root user for MySQL server, and is different from the Container's root user.) Since this is our first login, the service will not require any password to connect as root. Use mysqladmin command at the shell prompt as follows mysqladmin -u root password

Step III - Installing phpMyAdmin Before we install phpMyAdmin using YUM, we will have to install EPEL or RPMForge repository. This is because phpMyAdmin is not included by default in CentOS repo. (In this example, we will use EPEL). Execute the following commands: # cd /tmp # wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm # rpm -ivh epel-release-6-7.noarch.rpm

Installing phpMyAdmin

Page 2

Installing phpMyAdmin

We can now go ahead with YUM installation of phpMyAdmin. Command yum -y install phpmyadmin

Step IV - Configuring phpMyAdmin phpMyAdmin can be accessed only from localhost, by default. To access it from your local system, you will have to change the configuration settings as follows. Edit the file phpMyAdmin.conf, which can be found under /etc/httpd/conf.d

Installing phpMyAdmin

Page 3

Installing phpMyAdmin

Edit the lines in that conf file as under: - Comment the 'Deny' directive - Mention your IP address for 'Allow from' You may customize the access settings as per hostname, IP address & IP address range depending on your needs. It is recommeded that you limit its access for security reasons.

Installing phpMyAdmin

Page 4

Installing phpMyAdmin

Step V - Restart Apache and start using phpMyAdmin To restart Apache, use service httpd restart Then, go to http:///phpMyAdmin or http:///phpMyAdmin. Note: You can customize the settings further as deemed necessary.

Installing phpMyAdmin

Page 5