- These instructions are intended for installing PhpMyAdmin on Fedora 23. If you’re using a different operating system, check out our guides to installing PhpMyAdmin on Fedora 22, Ubuntu 15.04, CentOS 6 and CentOS 7.
- For this tutorial, we’ll be using a Liquid Web Self Managed Fedora 23 server and logging in as root. A LAMP stack (Linux, Apache, MySQL and PHP) must be installed on your server.
Step #1: Install PhpMyAdminFirst, we’ll follow best practices and ensure that the list of available packages is up to date:
dnf -y updateThen it’s a matter of running one command for installation:
dnf -y install phpmyadmin
Step #2: Find Your IP AddressYou can determine your public IP address by visiting the ip.liquidweb.com site.
Step #3: Basic Configuration for PhpMyAdminBy default, the configuration for PhpMyAdmin allows access only from the server on which it is installed. To be able to access PhpMyAdmin’s web interface from your IP address, we’ll edit the Apache Virtual Host file created automatically during installation.
For a refresher on editing files with vim, see New User Tutorial: Overview of the Vim Text Editor. If vim is not installed on your OS, you can follow our tutorial on installing vim at How to Install VIM (Visual editor IMproved) on Fedora 23.In the PhpMyAdmin.conf, locate the following sections and change each IP address to the one you found in Step 2 (there should be a total of four instances of “127.0.0.1” which you’ll need to change to your IP address):
Require ip 127.0.0.1 Allow from 127.0.0.1 Require ip 127.0.0.1 Allow from 127.0.0.1Then save and exit the file with the following command:
:wqNow, restart Apache:
systemctl restart httpdVerify that PhpMyAdmin is working by visiting http://the_IP_of_your_server/phpmyadmin. For example: http://111.222.333.444/phpmyadmin.