How To Install Phpmyadmin On CentOs 7

phpMyAdmin is an open source tool used for the administration of MySQL. phpMyAdmin depends on the LAMP stack. It requires Apache2 or any compatible web servers, MySQL and PHP. This post will show you how to install phpmyadmin on CentOS 7.

Step 1 :
Download epel-release-7-x.noarch.rpm

Step 2 :
Install epel-release-7-x.noarch.rpm file

Step 3 :
Copying the rpm link by using follownig command

[ROOT@dollar1hosts ~]# RPM -IVH HTTP://EPEL.MIRROR.NET.IN/EPEL/7/X86_64/E/EPEL-RELEASE-7-1.NOARCH.RPM

Step 4 :
Now, update repositories by issuing follownig command

[ROOT@dollar1hosts ~]# YUM CHECK-UPDATE

Step 5 :
install phpmyadmin package along with dependencies

[ROOT@dollar1hosts ~]# YUM -Y INSTALL PHPMYADMIN

When you are finished

Step 6 :
Open /etc/httpd/conf.d/phpMyAdmin.conf file and edit as follows and Find follownig lines.

Note : ( you are found these line 2 times )

# APACHE 2.4
<REQUIREANY>
REQUIRE IP 127.0.0.1
REQUIRE IP ::1
</REQUIREANY>

Replace with

# APACHE 2.4
<REQUIREANY>
# REQUIRE IP 127.0.0.1
# REQUIRE IP ::1
REQUIRE ALL GRANTED
</REQUIREANY>

Step 7 :
Then, restart Apache service by using following commands

[ROOT@dollar1hosts ~]# SYSTEMCTL RESTART HTTPD.SERVICE

Step 8 :
Now open http://serverIP/phpmyadmin in your browser.

.
.
.
.
.

Congratulations! You have just installed phpMyAdmin on your CentOS 7

You can login using root as username and mysql root password.

Add a Comment

Your email address will not be published. Required fields are marked *