{"id":5542,"date":"2023-11-30T09:26:14","date_gmt":"2023-11-30T09:26:14","guid":{"rendered":"https:\/\/natsav.com\/blog\/?p=5542"},"modified":"2024-02-01T11:38:59","modified_gmt":"2024-02-01T11:38:59","slug":"install-phpmyadmin-on-centos","status":"publish","type":"post","link":"https:\/\/natsav.com\/blog\/install-phpmyadmin-on-centos\/","title":{"rendered":"A Step-by-Step Guide: Installing phpMyAdmin on CentOS"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_68_1 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/natsav.com\/blog\/install-phpmyadmin-on-centos\/#Installing_phpMyAdmin_on_CentOS\" title=\"Installing phpMyAdmin on CentOS:\">Installing phpMyAdmin on CentOS:<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/natsav.com\/blog\/install-phpmyadmin-on-centos\/#Step_1_Update_Your_Server\" title=\"Step 1: Update Your Server\">Step 1: Update Your Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/natsav.com\/blog\/install-phpmyadmin-on-centos\/#Step_2_Install_EPEL_Repository\" title=\"Step 2: Install EPEL Repository\">Step 2: Install EPEL Repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/natsav.com\/blog\/install-phpmyadmin-on-centos\/#Step_3_Install_phpMyAdmin\" title=\"Step 3: Install phpMyAdmin\">Step 3: Install phpMyAdmin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/natsav.com\/blog\/install-phpmyadmin-on-centos\/#Step_4_Configure_phpMyAdmin\" title=\"Step 4: Configure phpMyAdmin\">Step 4: Configure phpMyAdmin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/natsav.com\/blog\/install-phpmyadmin-on-centos\/#Step_5_Restart_Apache\" title=\"Step 5: Restart Apache\">Step 5: Restart Apache<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Installing_phpMyAdmin_on_CentOS\"><\/span><strong>Installing phpMyAdmin on CentOS:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Update_Your_Server\"><\/span>Step 1: Update Your Server<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Before installing any new software, it&#8217;s crucial to ensure your system is up to date. Open a terminal and run the following commands:<br \/>\n<code class=\"!whitespace-pre hljs language-bash\">#sudo yum update<\/code><\/p>\n<p>If you are in search of a cost-effective Ubuntu server, look no further! By simply clicking on the provided link <a href=\"https:\/\/www.natsav.com\/linux-vps-server-hosting.php\">Linux Ubuntu Cloud<\/a><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Install_EPEL_Repository\"><\/span>Step 2: Install EPEL Repository<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>phpMyAdmin is available in the Extra Packages for Enterprise Linux (EPEL) repository. Install it with:<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">#sudo yum install epel-release<br \/>\n<\/code><\/div>\n<\/div>\n<h4><span class=\"ez-toc-section\" id=\"Step_3_Install_phpMyAdmin\"><\/span>Step 3: Install phpMyAdmin<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Now, you can install phpMyAdmin using the following command:<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">#sudo yum install phpmyadmin<br \/>\n<\/code><\/div>\n<\/div>\n<h4><span class=\"ez-toc-section\" id=\"Step_4_Configure_phpMyAdmin\"><\/span>Step 4: Configure phpMyAdmin<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>phpMyAdmin requires a small configuration before it&#8217;s ready to use. Open the configuration file in a text editor:<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">#sudo nano \/etc\/httpd\/conf.d\/phpMyAdmin.conf<br \/>\n<\/code><\/div>\n<\/div>\n<p>Find the line that says <code>Require ip 127.0.0.1<\/code> and change it to:<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">Require all granted<br \/>\n<\/code><\/div>\n<\/div>\n<p>Save the changes and exit the text editor.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_5_Restart_Apache\"><\/span>Step 5: Restart Apache<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To apply the changes, restart the Apache web server:<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">#sudo systemctl restart httpd<br \/>\n<\/code><\/div>\n<\/div>\n<p>Now, you can access phpMyAdmin by navigating to <code>http:\/\/your_server_ip\/phpmyadmin<\/code> in your web browser.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing phpMyAdmin on CentOS: Step 1: Update Your Server Before installing any new software, it&#8217;s crucial to ensure your system is up to date. Open a terminal and run the following commands: #sudo yum update If you are in search of a cost-effective Ubuntu server, look no further! By simply clicking on the provided link [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5543,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[256],"tags":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/natsav.com\/blog\/wp-content\/uploads\/2023\/11\/php-centos-e1701336459564.png?fit=473%2C260&ssl=1","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts\/5542"}],"collection":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/comments?post=5542"}],"version-history":[{"count":10,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts\/5542\/revisions"}],"predecessor-version":[{"id":5849,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts\/5542\/revisions\/5849"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/media\/5543"}],"wp:attachment":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/media?parent=5542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/categories?post=5542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/tags?post=5542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}