How To Install phpMyAdmin on CentOS 8

Install phpMyAdmin on CentOS 8

In this tutorial we will show you how to install phpMyAdmin on CentOS 8. For those of you who didn’t know, phpMyAdmin is web-based client written in php for managing MySQL and MariaDB databases. It provides a user friendly web interface to access and manage your databases. To ease usage to a wide range of people, phpMyAdmin is being translated into 72 languages and supports both LTR and RTL languages.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation phpMyAdmin on a CentOS 8 server.

Install phpMyAdmin on CentOS 8

Step 1. First of all make sure that all packages are up to date.

Step 2. Installing LAMP Stack.

If you don’t have a LAMP stack already installed on your server, you can follow our guide here. Also install required PHP modules, run the command below to install other required PHP extensions for phpMyAdmin:

Step 3. Installing phpMyAdmin on CentOS 8.

phpMyAdmin package is not yet available in the OS repository for CentOS 8. So, we need to download it from the official website:

Move the phpMyAdmin set up to your desired location:

Step 4. Configure phpMyAdmin.

First, copy the sample configuration file:

Next, edit the configuration file and add a blowfish secret:

Then, import the create_tables.sql to create new tables for phpMyAdmin:

Create an alias in the Apache web server so that phpMyAdmin can be accessed with http://your-ip-adddress/phpmyadmin:

Add following file:

Create a tmp directory for phpMyAdmin and change the permission:

Restart the service to take change effect:

Step 5. Configure Firewall for phpMyAdmin.

Create a firewall rule to allow HTTP requests from external networks:

Step 6. Accessing phpMyAdmin.

Now open your browser and surf to http://your-ip-address/phpmyadmin and your phpmyadmin will ask you for user and password of your mysql installation, you can use root as user and the root mysql password, or any other mysql user/password. If you are using a firewall, please open port 80 to enable access to the control panel.

Install phpMyAdmin on CentOS 8

Congratulation’s! You have successfully installed phpMyAdmin. Thanks for using this tutorial for installing phpMyAdmin on CentOS 8 system. For additional help or useful information, we recommend you to check the official phpMyAdmin website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!