{"id":3013,"date":"2012-05-11T21:28:21","date_gmt":"2012-05-11T13:28:21","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3013"},"modified":"2023-06-28T12:51:54","modified_gmt":"2023-06-28T12:51:54","slug":"how-to-install-phpmyadmin-on-centos-5-8-using-epel-repository","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-phpmyadmin-on-centos-5-8-using-epel-repository\/","title":{"rendered":"How to Install phpMyAdmin on CentOS 5.8 using EPEL Repository"},"content":{"rendered":"<p>In this guide, we will walk you through the process of installing phpMyAdmin on CentOS 5.8 using the EPEL repository. <\/p>\n<p>phpMyAdmin is a powerful open-source tool, written in PHP, designed to handle MySQL administration via a web interface over the internet. It can manage an entire MySQL server as well as individual databases.<\/p>\n<p>This guide assumes that MySQL and Apache Httpd server have already been installed and configured properly on your system.<\/p>\n<p>For more in-depth information about web servers, you can visit our articles on <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/nginx-server-explained\/\">Nginx<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/litespeed-web-server-explained\/\">LiteSpeed<\/a>.<\/p>\n<h2>Step 1: Install and Configure EPEL Repository<\/h2>\n<p>The first step in installing phpMyAdmin on CentOS 5.8 is to install and configure the Extra Packages for Enterprise Linux (EPEL) repository. EPEL repository is an additional repository that creates, maintains, and manages a high-quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL) and CentOS server. You can follow the steps in this <a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-and-configure-epel-repository-on-centos-5-8\/\">guide<\/a> to install and configure the EPEL repository on CentOS 5.8.<\/p>\n<h2>Step 2: Install phpMyAdmin<\/h2>\n<p>After setting up the EPEL repository, you can install phpMyAdmin by running the following command:<\/p>\n<pre>\r\n[root@centos58 ~]# yum install phpmyadmin -y\r\n<\/pre>\n<p>This command will install phpMyAdmin along with its dependencies. The installation process may take a few minutes to complete.<\/p>\n<p>Example :<\/p>\n<pre>\r\n[root@centos58 ~]# yum install phpmyadmin -y\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: centos.ipserverone.com\r\n * epel: mirror.nus.edu.sg\r\n * extras: centos.ipserverone.com\r\n * updates: mirrors.hostemo.com\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package phpMyAdmin.noarch 0:2.11.11.3-2.el5 set to be updated\r\n--> Processing Dependency: php-mcrypt >= 4.1.0 for package: phpMyAdmin\r\n--> Processing Dependency: php-gd >= 4.1.0 for package: phpMyAdmin\r\n--> Processing Dependency: php-mysql >= 4.1.0 for package: phpMyAdmin\r\n--> Processing Dependency: php >= 4.1.0 for package: phpMyAdmin\r\n--> Processing Dependency: php-mbstring >= 4.1.0 for package: phpMyAdmin\r\n--> Running transaction check\r\n---> Package php.i386 0:5.1.6-34.el5_8 set to be updated\r\n--> Processing Dependency: php-common = 5.1.6-34.el5_8 for package: php\r\n--> Processing Dependency: php-cli = 5.1.6-34.el5_8 for package: php\r\n--> Processing Dependency: libcurl.so.3 for package: php\r\n--> Processing Dependency: libgmp.so.3 for package: php\r\n--> Processing Dependency: libidn.so.11 for package: php\r\n--> Processing Dependency: libaspell.so.15 for package: php\r\n--> Processing Dependency: libpspell.so.15 for package: php\r\n---> Package php-gd.i386 0:5.1.6-34.el5_8 set to be updated\r\n---> Package php-mbstring.i386 0:5.1.6-34.el5_8 set to be updated\r\n---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated\r\n--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt\r\n---> Package php-mysql.i386 0:5.1.6-34.el5_8 set to be updated\r\n--> Processing Dependency: php-pdo for package: php-mysql\r\n--> Running transaction check\r\n---> Package aspell.i386 12:0.60.3-12 set to be updated\r\n--> Processing Dependency: aspell-en for package: aspell\r\n---> Package curl.i386 0:7.15.5-15.el5 set to be updated\r\n---> Package gmp.i386 0:4.1.4-10.el5 set to be updated\r\n---> Package libidn.i386 0:0.6.5-1.1 set to be updated\r\n---> Package libmcrypt.i386 0:2.5.8-4.el5.centos set to be updated\r\n---> Package php-cli.i386 0:5.1.6-34.el5_8 set to be updated\r\n---> Package php-common.i386 0:5.1.6-34.el5_8 set to be updated\r\n---> Package php-pdo.i386 0:5.1.6-34.el5_8 set to be updated\r\n--> Running transaction check\r\n---> Package aspell-en.i386 50:6.0-2.1 set to be updated\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n====================================================================================================\r\n Package                Arch             Version                            Repository         Size\r\n====================================================================================================\r\nInstalling:\r\n phpMyAdmin             noarch           2.11.11.3-2.el5                    epel              4.2 M\r\nInstalling for dependencies:\r\n aspell                 i386             12:0.60.3-12                       base              946 k\r\n aspell-en              i386             50:6.0-2.1                         base              1.6 M\r\n curl                   i386             7.15.5-15.el5                      base              235 k\r\n gmp                    i386             4.1.4-10.el5                       base              664 k\r\n libidn                 i386             0.6.5-1.1                          base              194 k\r\n libmcrypt              i386             2.5.8-4.el5.centos                 extras            116 k\r\n php                    i386             5.1.6-34.el5_8                     updates           2.3 M\r\n php-cli                i386             5.1.6-34.el5_8                     updates           2.1 M\r\n php-common             i386             5.1.6-34.el5_8                     updates           154 k\r\n php-gd                 i386             5.1.6-34.el5_8                     updates           118 k\r\n php-mbstring           i386             5.1.6-34.el5_8                     updates           996 k\r\n php-mcrypt             i386             5.1.6-15.el5.centos.1              extras             16 k\r\n php-mysql              i386             5.1.6-34.el5_8                     updates            87 k\r\n php-pdo                i386             5.1.6-34.el5_8                     updates            66 k\r\n\r\nTransaction Summary\r\n====================================================================================================\r\nInstall      15 Package(s)\r\nUpgrade       0 Package(s)\r\n\r\nTotal download size: 14 M\r\nDownloading Packages:\r\n(1\/15): php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm                            |  16 kB     00:00\r\n(2\/15): php-pdo-5.1.6-34.el5_8.i386.rpm                                      |  66 kB     00:00\r\n(3\/15): php-mysql-5.1.6-34.el5_8.i386.rpm                                    |  87 kB     00:00\r\n(4\/15): libmcrypt-2.5.8-4.el5.centos.i386.rpm                                | 116 kB     00:00\r\n(5\/15): php-gd-5.1.6-34.el5_8.i386.rpm                                       | 118 kB     00:00\r\n(6\/15): php-common-5.1.6-34.el5_8.i386.rpm                                   | 154 kB     00:01\r\n(7\/15): libidn-0.6.5-1.1.i386.rpm                                            | 194 kB     00:01\r\n(8\/15): curl-7.15.5-15.el5.i386.rpm                                          | 235 kB     00:01\r\n(9\/15): gmp-4.1.4-10.el5.i386.rpm                                            | 664 kB     00:05\r\n(10\/15): aspell-0.60.3-12.i386.rpm                                           | 946 kB     00:08\r\n(11\/15): php-mbstring-5.1.6-34.el5_8.i386.rpm                                | 996 kB     00:08\r\n(12\/15): aspell-en-6.0-2.1.i386.rpm                                          | 1.6 MB     00:13\r\n(13\/15): php-cli-5.1.6-34.el5_8.i386.rpm                                     | 2.1 MB     00:18\r\n(14\/15): php-5.1.6-34.el5_8.i386.rpm                                         | 2.3 MB     00:26\r\n(15\/15): phpMyAdmin-2.11.11.3-2.el5.noarch.rpm                               | 4.2 MB     00:37\r\n----------------------------------------------------------------------------------------------------\r\nTotal                                                               108 kB\/s |  14 MB     02:09\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nFinished Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing     : php-common                                                                  1\/15\r\n  Installing     : libidn                                                                      2\/15\r\n  Installing     : curl                                                                        3\/15\r\n  Installing     : gmp                                                                         4\/15\r\n  Installing     : php-gd                                                                      5\/15\r\n  Installing     : php-mbstring                                                                6\/15\r\n  Installing     : php-pdo                                                                     7\/15\r\n  Installing     : php-mysql                                                                   8\/15\r\n  Installing     : libmcrypt                                                                   9\/15\r\n  Installing     : aspell-en                                                                  10\/15\r\n  Installing     : aspell                                                                     11\/15\r\n  Installing     : php-cli                                                                    12\/15\r\n  Installing     : php                                                                        13\/15\r\n  Installing     : php-mcrypt                                                                 14\/15\r\n  Installing     : phpMyAdmin                                                                 15\/15\r\n\r\nInstalled:\r\n  phpMyAdmin.noarch 0:2.11.11.3-2.el5\r\n\r\nDependency Installed:\r\n  aspell.i386 12:0.60.3-12                       aspell-en.i386 50:6.0-2.1\r\n  curl.i386 0:7.15.5-15.el5                      gmp.i386 0:4.1.4-10.el5\r\n  libidn.i386 0:0.6.5-1.1                        libmcrypt.i386 0:2.5.8-4.el5.centos\r\n  php.i386 0:5.1.6-34.el5_8                      php-cli.i386 0:5.1.6-34.el5_8\r\n  php-common.i386 0:5.1.6-34.el5_8               php-gd.i386 0:5.1.6-34.el5_8\r\n  php-mbstring.i386 0:5.1.6-34.el5_8             php-mcrypt.i386 0:5.1.6-15.el5.centos.1\r\n  php-mysql.i386 0:5.1.6-34.el5_8                php-pdo.i386 0:5.1.6-34.el5_8\r\n\r\nComplete!\r\n<\/pre>\n<h2>Step 3: Configure phpMyAdmin<\/h2>\n<p>Once phpMyAdmin is installed, you need to configure it. Open the phpMyAdmin.conf configuration file using the following command:<\/p>\n<pre>\r\n[root@centos58 ~]# vi \/etc\/httpd\/conf.d\/phpMyAdmin.conf\r\n<\/pre>\n<p>The original configuration only allows access from localhost. If you want to allow access from any IP address (which is very dangerous unless properly secured by SSL), you can change the configuration as follows:<\/p>\n<pre>\r\n&lt;Directory \/usr\/share\/phpMyAdmin\/&gt;\r\n Order Deny,Allow\r\n Deny from All\r\n Allow from All\r\n Allow from ::1\r\n&lt;\/Directory&gt;\r\n<\/pre>\n<h2>Step 4: Restart Apache Httpd Service<\/h2>\n<p>After configuring phpMyAdmin, you need to restart the Apache Httpd service for the changes to take effect. You can do this by running the following command:<\/p>\n<pre>\r\n[root@centos58 ~]# \/etc\/init.d\/httpd restart\r\n<\/pre>\n<h2>Step 5: Access phpMyAdmin<\/h2>\n<p>Now, you can access phpMyAdmin from your browser using the following URL:<\/p>\n<pre>\r\nhttp:\/\/CentOS5.8_Ipaddress\/phpmyadmin\/\r\n<\/pre>\n<p>This completes the installation of phpMyAdmin \u2013 2.11.11.3 on your CentOS 5.8.<\/p>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\">yum install phpmyadmin -y<\/span> \u2013 This command installs phpMyAdmin along with its dependencies.<\/li>\n<li><span class=\"fw-bold\">vi \/etc\/httpd\/conf.d\/phpMyAdmin.conf<\/span> \u2013 This command opens the phpMyAdmin configuration file for editing.<\/li>\n<li><span class=\"fw-bold\">\/etc\/init.d\/httpd restart<\/span> \u2013 This command restarts the Apache Httpd service, applying any changes made in the configuration files.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this tutorial, we have walked you through the process of installing phpMyAdmin on CentOS 5.8 using the EPEL repository. This powerful tool allows you to manage your MySQL server and databases via a web interface, making database administration more accessible and efficient. We have also discussed how to configure phpMyAdmin and how to access it from your browser. Remember, while it is possible to allow access from any IP address, this can be very dangerous unless properly secured by SSL. It is generally recommended to restrict access to specific, trusted IP addresses.<\/p>\n<p>Whether you&#8217;re running a <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated server<\/a>, a <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS server<\/a>, or utilizing <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-cloud-hosting\/\">cloud hosting<\/a> or <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-shared-hosting\/\">shared hosting<\/a>, understanding how to install and configure tools like phpMyAdmin is an essential skill for any webmaster or website administrator.<\/p>\n<p>We hope this guide has been helpful. If you have any further questions, feel free to ask.<\/p>\n<p>Happy hosting!<\/p>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is phpMyAdmin?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">phpMyAdmin is an open-source tool written in PHP, designed to handle MySQL administration via a web interface over the internet. It can manage an entire MySQL server as well as individual databases.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the EPEL repository?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The EPEL (Extra Packages for Enterprise Linux) repository is an additional repository that creates, maintains, and manages a high-quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL) and CentOS server.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">How can I access phpMyAdmin after installation?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">You can access phpMyAdmin from your browser using the following URL: http:\/\/CentOS5.8_Ipaddress\/phpmyadmin\/ Replace &#8220;CentOS5.8_Ipaddress&#8221; with the IP address of your CentOS 5.8 server.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Why do I need to restart the Apache Httpd service after configuring phpMyAdmin?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Restarting the Apache Httpd service applies any changes made in the configuration files. This is necessary for the changes to take effect.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Is it safe to allow access to phpMyAdmin from any IP address?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Allowing access to phpMyAdmin from any IP address can be very dangerous unless it is properly secured by SSL. It is generally recommended to restrict access to specific, trusted IP addresses.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will walk you through the process of installing phpMyAdmin on CentOS 5.8 using the EPEL repository. phpMyAdmin is a powerful open-source tool, written in PHP, designed&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1893,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1249,1473,1536,1546,1585,1658],"class_list":["post-3013","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-centos-5-8","tag-httpd","tag-linux","tag-linux-utilities","tag-mysql","tag-phpmyadmin"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3013"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3013\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1893"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}