{"id":159,"date":"2016-02-27T17:54:22","date_gmt":"2016-02-27T22:54:22","guid":{"rendered":"http:\/\/easy-admin.ca\/wordpress\/?p=159"},"modified":"2024-03-28T10:26:50","modified_gmt":"2024-03-28T14:26:50","slug":"install-phpmyadmin-in-centos-7","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2016\/02\/27\/install-phpmyadmin-in-centos-7\/","title":{"rendered":"Install phpmyadmin in CENTOS 7"},"content":{"rendered":"<div class=\"step_number\"><strong>Step 1: Add the EPEL Repository<\/strong><\/div>\n<p>phpMyAdmin is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we\u2019ll install the EPEL repository:<\/p>\n<p><code>rpm -iUvh http:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-7-5.noarch.rpm<\/code><\/p>\n<div class=\"step_number\"><strong>Step 2: Install phpMyAdmin<\/strong><\/div>\n<p>First, you\u2019ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.<\/p>\n<p><code>yum -y update<\/code><\/p>\n<p>Then it\u2019s a matter of just running one command for installation via apt-get:<\/p>\n<p><code>yum -y install phpmyadmin<\/code><\/p>\n<p><strong>Step 3: Find Your IP Address<\/strong><\/p>\n<div class=\"step_number\"><strong>Step 4: Basic Configuration for phpMyAdmin<\/strong><\/div>\n<p>To secure phpMyAdmin we should lock down access to a specific IP address. When the phpMyAdmin package is installed, an Apache Virtual Host file is added to configure web access. Let\u2019s edit that file:<\/p>\n<p><code>vim \/etc\/httpd\/conf.d\/phpMyAdmin.conf<\/code><\/p>\n<p>By default, the configuration for phpMyAdmin only allows access from the server on which it is installed. Find the following sections and change each IP address to the one you found in Step 3, or another IP address that will be connecting to phpMyAdmin remotely:<\/p>\n<p>Require ip 127.0.0.1<\/p>\n<p>Allow from 127.0.0.1<\/p>\n<p>Require ip 127.0.0.1<\/p>\n<p>Allow from 127.0.0.1<\/p>\n<p>Then exit and save the file with the command :wq .<\/p>\n<p>Restart Apache:<\/p>\n<p><code>systemctl restart httpd<\/code><\/p>\n<p>Verify that phpMyAdmin is working by visiting http:\/\/the_IP_of_your_server\/phpmyadmin. For example: http:\/\/1.2.3.4\/phpmyadmin<\/p>\n<p>Also you will have to go remove the password authetification in the phpmyadmin conf file<\/p>\n<p>After those steps simply create a user with the desired password and all privilege granted!<\/p>\n<p>Et voil\u00e0!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Add the EPEL Repository phpMyAdmin is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we\u2019ll install the EPEL repository: rpm -iUvh http:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-7-5.noarch.rpm Step 2: Install phpMyAdmin First, you\u2019ll follow a simple best practice: ensuring the list of available packages is &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2016\/02\/27\/install-phpmyadmin-in-centos-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install phpmyadmin in CENTOS 7<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":3467,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media\/3467"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}