{"id":18406,"date":"2024-05-24T17:20:08","date_gmt":"2024-05-24T17:20:08","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/how-to-use-the-knowledge-base\/8-simple-steps-to-install-phpmyadmin-on-centos-7\/"},"modified":"2024-06-17T09:09:40","modified_gmt":"2024-06-17T09:09:40","slug":"8-simple-steps-to-install-phpmyadmin-on-centos-7","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/8-simple-steps-to-install-phpmyadmin-on-centos-7\/","title":{"rendered":"8 Simple Steps to Install phpMyAdmin on CentOS 7"},"content":{"rendered":"\n<p>A popular database among developers of all stripes is MySQL. It strikes the ideal balance between features and speed thanks to its open source nature. Consequently, you will discover how to install phpMyAdmin on CentOS 7, the greatest program for managing your MySQL database, in this knowledge base article. An additional utility for enhancing living quality will be added to your VPS.<\/p>\n\n\n\n<p>Command line is the native tool for accessing MySQL and this is the key reason to have phpMyAdmin. The command line isn\u2019t accessible to all at any point and if the GUI \u2013 graphical user interface isn\u2019t available, it can be hard for the newbies. A wide range of operations are supported by phpMyAdmin on MySQL and MariaDB (a fork of MySQL).<\/p>\n\n\n\n<p>Reasons to Use phpMyAdmin<br>After installing phpMyAdmin on CentOS 7, you can enjoy new and intuitive interface via your browser, rather than using the command line. This web interface allows you to perform typical operations such as managing tables, columns, databases, relations, users, etc. and use the same for executing any SQL statement directly.<\/p>\n\n\n\n<p>For increasing phpMyAdmin\u2019s adoption, it is translated into 72 different languages and supports both RTL (right-to-left) and LTR (left-to-right) languages.<\/p>\n\n\n\n<p>Other Features of phpMyAdmin:<br>It allows you to display sets of multiple results via the procedures and queries that are stored.<br>You can create, browse, edit, and drop tables, databases, columns, views, and indexes.<br>Also, you can create, copy, drop, rename and alter tables, databases, columns and indexes.<br>It helps to maintain the server, tables and databases with proposals on server configuration.<br>You can load text files into tables with it.<br>Steps to Install phpMyAdmin on CentOS 7<br>Below are the steps to install phpMyAdmin on CentOS 7:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access Your VPS<br>Prior to starting, you will need to access our VPS server using SSH.<\/li>\n<\/ol>\n\n\n\n<p>Related: How To Login to Your Server By SSH?<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Install an Apache Web Server<br>Apache web server is the first and foremost requirement of phpMyAdmin. Install Apache on your CentOS 7 virtual private server using the below command:<\/li>\n<\/ol>\n\n\n\n<p>yum install httpd -y<br>Check the status of apache with the command:<\/p>\n\n\n\n<p>systemctl status httpd<br>Then to check if Apache is running, enter your server\u2019s IP address into a browser address bar. If it\u2019s working you will see the Apache testing splash screen as below:<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Install the EPEL Repository<br>The EPEL repository (Extra Packages for Enterprise Linux) includes phpMyAdmin. For accessing the EPEL, you will need to install a special package \u2013 epel-release. You can install epel-release on your CentOS using the below command:<\/li>\n<\/ol>\n\n\n\n<p>sudo yum install epel-release<br>You can now proceed to install phpMyAdmin on CentOS 7 as the EPEL repo is available now.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Install phpMyAdmin on CentOS 7<br>Run the below command to install phpMyAdmin:<\/li>\n<\/ol>\n\n\n\n<p>sudo yum install phpmyadmin<br>After the installation gets completed, you will need to edit the phpMyAdmin configuration file.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Configure the phpMyAdmin.conf File<br>Editing the file will ensure your access to phpMyAdmin client remotely. The phpMyAdmin.conf file located in the directory \/etc\/httpd\/conf.d\/ can be opened using the vim editor:<\/li>\n<\/ol>\n\n\n\n<p>vim \/etc\/httpd\/conf.d\/phpMyAdmin.conf<br>Here, there are four different require ip strings matched with long IPs. The default value is 127.0.0.1. You need to replace this value with the IP of the machine that you use to access phpMyAdmin. A tool like WhatsMyIP can be used to check your IP. Then save and exit the file by hitting escape and typing in :wq.<\/p>\n\n\n\n<p>Check the example of the phpMyAdmin.conf file below:<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li>Restart the Apache Web Server<br>Now, restart the Apache web server by entering the below command in the command line:<\/li>\n<\/ol>\n\n\n\n<p>systemctl restart httpd<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>Check if phpMyAdmin is Working<br>Lastly, to open phpMyAdmin utility enter your server\u2019s IP address in a browser\u2019s address bar with the addition \/phpmyadmin string such as \u2013 127.0.0.1\/phpmyadmin. You will see the login screen.<\/li>\n\n\n\n<li>Locate Your phpMyAdmin Username and Password<br>Check for your username and password in the file config.inc.php. you will find the file in the phpMyAdmin installation directory. Here it is \/etc\/phpMyAdmin.<\/li>\n<\/ol>\n\n\n\n<p>Use the vim editor to open the file:<\/p>\n\n\n\n<p>vim config.inc.php<br>You can set the username and password inside this, as shown in the screenshot below:<\/p>\n\n\n\n<p>Next, save and exit the file by clicking on esc and :wq as before.<\/p>\n\n\n\n<p>Conclusion<br>Finally, you can log in to your phpMyAdmin! You have completed the phpMyAdmin installation on CentOS 7.<\/p>\n\n\n\n<p>After logging in, you will see the intuitive dashboard that is well-known to any shared or cloud hosting users.<\/p>\n\n\n\n<p>hpMyAdmin functions as a comprehensive solution for a variety of company database needs and is simple to use. Because it requires no prior database administration skills to use, phpMyAdmin is widely used.<\/p>\n\n\n\n<p>Happy management with your phpMyAdmin!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A popular database among developers of all stripes is MySQL. It strikes the ideal balance between features and speed thanks to its open source nature. Consequently, you will discover how to install phpMyAdmin on CentOS 7, the greatest program for managing your MySQL database, in this knowledge base article. An additional utility for enhancing living [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":51,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-18406","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=18406"}],"version-history":[{"count":2,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18406\/revisions"}],"predecessor-version":[{"id":18413,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18406\/revisions\/18413"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=18406"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=18406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}