{"id":5694,"date":"2016-04-23T08:05:31","date_gmt":"2016-04-23T00:05:31","guid":{"rendered":"http:\/\/rmohan.com\/?p=5694"},"modified":"2016-04-23T08:05:31","modified_gmt":"2016-04-23T00:05:31","slug":"how-to-install-phpmyadmin-on-centos-7","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5694","title":{"rendered":"How to install phpmyadmin on centos 7"},"content":{"rendered":"<p>How to install phpmyadmin on centos 7<br \/>\nPhpmyadmin is an opensource tool to manage MySQL database using web browser. it can perform almost all tasks such as creating,deleting,modifying databases,users,tables and fields .<br \/>\nThis guide helps you to install phpmyadmin on centos 7. it contains step by step installation through YUM using EPEL repository.<br \/>\nPrerequisite \u2013 LAMP server<br \/>\nBefore starting phpmyadmin installation, You must setup LAMP server on your centos 7 server. Copy and paste below command in terminal for quick setup . At the end, you need to provide some inputs .<br \/>\n\u00bb leave blank for current mysql password.<br \/>\n\u00bb provide new password and press enter for the rest.<br \/>\nyum -y install httpd mariadb-server mariadb php php-mysql php-gd php-pear php-mbstring &amp;&amp; systemctl start httpd.service &amp;&amp; systemctl enable httpd.service &amp;&amp; systemctl start mariadb &amp;&amp; systemctl enable mariadb &amp;&amp; firewall-cmd &#8211;permanent &#8211;add-service http &amp;&amp; systemctl restart firewalld.service &amp;&amp; mysql_secure_installation<\/p>\n<p>You can also refer this guide \u2013 Install LAMP server on centos 7 for more detailed setup.<\/p>\n<p>Install phpmyadmin on centos 7<br \/>\nBy default, centos 7 repository does not contains phpmyadmin package. we need to enable EPEL repository. Find the latest EPEL for centos 7 from EPEL for Centos 7<br \/>\nStep 1 \u00bb Download and install epel-release-7-x.noarch.rpm file . or install directly by copying the rpm link.<br \/>\n[root@rmohan ~]# rpm -ivh http:\/\/epel.mirror.net.in\/epel\/7\/x86_64\/e\/epel-release-7-1.noarch.rpm<\/p>\n<p>Step 2 \u00bb Update repositories by issuing below command .<br \/>\n[root@rmohan ~]# yum check-update<\/p>\n<p>Step 3 \u00bb Now install phpmyadmin package along with dependencies.<br \/>\n[root@rmohan ~]# yum -y install phpmyadmin<\/p>\n<p>Step 4 \u00bb After installation, Open \/etc\/httpd\/conf.d\/phpMyAdmin.conf file ( Apache config file for phpmyadmin ) and edit as follows.<br \/>\nFind these lines . ( Found 2 times )<br \/>\n# Apache 2.4<br \/>\n&lt;RequireAny&gt;<br \/>\nRequire ip 127.0.0.1<br \/>\nRequire ip ::1<br \/>\n&lt;\/RequireAny&gt;<\/p>\n<p># Apache 2.4<br \/>\n&lt;RequireAny&gt;<br \/>\nRequire ip 127.0.0.1<br \/>\nRequire ip ::1<br \/>\n&lt;\/RequireAny&gt;<br \/>\nReplace with<br \/>\n# Apache 2.4<br \/>\n&lt;RequireAny&gt;<br \/>\n# Require ip 127.0.0.1<br \/>\n# Require ip ::1<br \/>\nRequire all granted<br \/>\n&lt;\/RequireAny&gt;<\/p>\n<p># Apache 2.4<br \/>\n&lt;RequireAny&gt;<br \/>\n# Require ip 127.0.0.1<br \/>\n# Require ip ::1<br \/>\nRequire all granted<br \/>\n&lt;\/RequireAny&gt;<\/p>\n<p>tep 5 \u00bb Restart Apache service .<br \/>\n[root@rmohan ~]# systemctl restart httpd.service<\/p>\n<p>Step 6 \u00bb Now open http:\/\/serverIP\/phpmyadmin in your browser. You can login using root as username and mysql root password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install phpmyadmin on centos 7 Phpmyadmin is an opensource tool to manage MySQL database using web browser. it can perform almost all tasks such as creating,deleting,modifying databases,users,tables and fields . This guide helps you to install phpmyadmin on centos 7. it contains step by step installation through YUM using EPEL repository. Prerequisite \u2013 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5694"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5694"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5694\/revisions"}],"predecessor-version":[{"id":5695,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5694\/revisions\/5695"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}