Install phpMyAdmin on CentOS 7
PhpMyAdmin is a convenient way to manage MySQL/MariaDB for those who prefer a browser-based interface over the traditional command-line interface. Learn how to install and use phpMyAdmin on a Cloud Server with Linux (CentOS 7).
Requirements
- A Cloud Server with Linux.
- MySQL/MariaDB installed and running.
- PHP installed and running.
Thanks to free starting credit, you can test the IONOS cloud server for 1 month free of charge (or until the credit is used up) and experience the perfect combination of performance and security!
PHP and MySQL/MariaDB are installed and running on a Standard Linux installation by default. If your server was created with a Minimal installation, you will need to install and configure PHP and MySQL/MariaDB before you proceed.
To install phpMyAdmin on CentOS 7, first install the EPEL repository:
Then install phpMyAdmin with the command:
Next, you will need to edit the configuration file to allow access from your desktop computer. To find your IP address, you can simply search Google for "What's my IP address."
Open the configuration file for editing:
Change the lines which read:
These lines are repeated, so you will need to change four lines in total.
Change the IP address 127.0.0.1 to your IP address:
Then save and exit the file.
Restart Apache for the changes to take effect:
You can now access phpMyAdmin at "https://www.example.com/phpmyadmin".