{"id":2219,"date":"2015-06-13T07:30:07","date_gmt":"2015-06-13T07:30:07","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=2219"},"modified":"2021-02-17T12:07:27","modified_gmt":"2021-02-17T12:07:27","slug":"install-and-configure-phpmyadmin-on-a-centos","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/","title":{"rendered":"Install and Configure phpMyAdmin on CentOS"},"content":{"rendered":"<p>In this post, we will guide\u00a0how to install and configure phpMyAdmin on a CentOS 6.x VPS. The procedure should be fairly similar for other versions.<\/p>\n<p><strong>Step 1: Turn on EPEL repo :<\/strong><\/p>\n<p>phpMyAdmin package is not included in default RHEL \/ CentOS repositories. So turn on EPEL repo as follows:<!--more--><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">cd \/tmp\r\nwget http:\/\/download.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\r\nrpm -ivh epel-release-6-8.noarch.rpm<\/pre>\n<\/div>\n<p><strong>Step 2: Install phpMyAdmin on a CentOS \/ RHEL Linux :<\/strong><\/p>\n<p>Type the following yum command to download and install phpMyAdmin:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">yum search phpmyadmin\r\nyum -y install phpmyadmin<\/pre>\n<\/div>\n<p><strong>Step 3 :Install MySQL server on a CentOS\/RHEL :<\/strong><\/p>\n<p>To use phpMyAdmin, We need database software, we will install MySQL and preform some initial configuration from the command line:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">yum install mysql-server mysql<\/pre>\n<\/div>\n<p>Turn on and start the MySQL service, type:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">chkconfig mysqld on\r\nservice mysqld start<\/pre>\n<\/div>\n<p>We can configure some necessary directory structures and create some management system tables with the following command:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true  \">mysql_install_db<\/pre>\n<\/div>\n<p>Start secure MySQL installation by running the following command:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">mysql_secure_installation<\/pre>\n<\/div>\n<p>You will be asked a number of questions:<\/p>\n<ul>\n<li>Enter current password for root: <strong>press Enter<\/strong><\/li>\n<li>Set root password? <strong>Y<\/strong>\n<ul>\n<li>New password: <strong>Type an administrative password here<\/strong><\/li>\n<li>Re-enter new password: <strong>Confirm the password<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Remove anonymous users? <strong>Y<\/strong><\/li>\n<li>Disallow root login remotely? <strong>Y<\/strong><\/li>\n<li>Remove test database and access to it? <strong>Y<\/strong><\/li>\n<li>Reload privilege tables now? <strong>Y<\/strong><\/li>\n<\/ul>\n<p>Your MySQL installation should be up and running. Now test that you can log in with the password you set by typing:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">mysql -u root -p\r\nEnter password:<\/pre>\n<\/div>\n<p>Type exit\u00a0to return to the shell prompt:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">exit<\/pre>\n<\/div>\n<p><strong>Step 4: Configure phpMyAdmin :<\/strong><\/p>\n<p>You need to edit \/etc\/httpd\/conf.d\/phpMyAdmin.conf file, enter:<\/p>\n<div class=\"cpanel-files\"><\/div>\n<pre class=\"lang:default decode:true \">vi \/etc\/httpd\/conf.d\/phpMyAdmin.conf<\/pre>\n<div class=\"space1\"><\/div>\n<p>It allows only localhost by default. Find line that read follows:<\/p>\n<p>Require ip 127.0.0.1,There should be four locations that you need to change.<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">. . .\r\nRequire ip your_workstation_IP_address\r\n. . .\r\nAllow from your_workstation_IP_address\r\n. . .\r\nRequire ip your_workstation_IP_address\r\n. . .\r\nAllow from your_workstation_IP_address\r\n. . .<\/pre>\n<\/div>\n<p>Save and close the file. Restart Apache \/ httpd server:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">service httpd restart<\/pre>\n<\/div>\n<p>Open a web browser and type the following url:<\/p>\n<p>https:\/\/your-server-ip\/phpMyAdmin\/<\/p>\n<p>OR<br \/>\nhttp:\/\/your-server-ip\/phpMyAdmin\/<\/p>\n<p>You will be asked to log in. Use the user <strong>root<\/strong> and the password that you selected during the MySQL configuration stage. phpMyAdmin configuration file is located at <strong>\/etc\/phpMyAdmin\/config.inc.php<\/strong>. You can edit this file using :<\/p>\n<div class=\"cpanel-files\"><\/div>\n<pre class=\"lang:default decode:true\">vi \/etc\/phpMyAdmin\/config.inc.php<\/pre>\n<div class=\"space1\"><\/div>\n<p>Congratulations, you are done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we will guide\u00a0how to install and configure phpMyAdmin on a CentOS 6.x VPS. The procedure should be fairly similar for other versions. Step 1: Turn on EPEL repo : phpMyAdmin package is not included in default RHEL \/ CentOS repositories. So turn on EPEL repo as follows: [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":2221,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install and Configure phpMyAdmin on CentOS - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Install and Configure phpMyAdmin on CentOS - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"In this post, we will guide\u00a0how to install and configure phpMyAdmin on a CentOS 6.x VPS. The procedure should be fairly similar for other versions. Step 1: Turn on EPEL repo : phpMyAdmin package is not included in default RHEL \/ CentOS repositories. So turn on EPEL repo as follows: [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"Install and Configure phpMyAdmin on CentOS\",\"datePublished\":\"2015-06-13T07:30:07+00:00\",\"dateModified\":\"2021-02-17T12:07:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/\"},\"wordCount\":324,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png\",\"articleSection\":[\"Cpanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/\",\"name\":\"Install and Configure phpMyAdmin on CentOS - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png\",\"datePublished\":\"2015-06-13T07:30:07+00:00\",\"dateModified\":\"2021-02-17T12:07:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png\",\"width\":300,\"height\":145},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install and Configure phpMyAdmin on CentOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install and Configure phpMyAdmin on CentOS - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/","twitter_card":"summary_large_image","twitter_title":"Install and Configure phpMyAdmin on CentOS - cPanel Plesk","twitter_description":"In this post, we will guide\u00a0how to install and configure phpMyAdmin on a CentOS 6.x VPS. The procedure should be fairly similar for other versions. Step 1: Turn on EPEL repo : phpMyAdmin package is not included in default RHEL \/ CentOS repositories. So turn on EPEL repo as follows: [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"Install and Configure phpMyAdmin on CentOS","datePublished":"2015-06-13T07:30:07+00:00","dateModified":"2021-02-17T12:07:27+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/"},"wordCount":324,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png","articleSection":["Cpanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/","url":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/","name":"Install and Configure phpMyAdmin on CentOS - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png","datePublished":"2015-06-13T07:30:07+00:00","dateModified":"2021-02-17T12:07:27+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/phpMyAdmin.png","width":300,"height":145},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-phpmyadmin-on-a-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Install and Configure phpMyAdmin on CentOS"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/2219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=2219"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/2219\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/2221"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=2219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=2219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=2219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}