Home>Article>Backend Development> How to install PhpMyAdmin on Fedora
PhpMyAdmin is the most popular web-based client for managing MySQL servers. PHPMyAdmin is written in the PHP programming language. It provides a user-friendly web interface to access and manage MySQL databases. This article will introduce installing phpMyAdmin on Fedora system.
#Conditions: We assume that the Apache (HTTP) web server, PHP and MySQL database server have been installed on the system.
Step 1: Configure REMI Repository
The latest packages for phpMyAdmin can be found in the Remi repository. Use the following command to install it in your system.
### Fedora 28 $ sudo rpm -Uvh http://rpms.famillecollet.com/fedora/remi-release-25.rpm ### Fedora 27 $ sudo rpm -Uvh http://rpms.famillecollet.com/fedora/remi-release-27.rpm ### Fedora 26 $ sudo rpm -Uvh http://rpms.famillecollet.com/fedora/remi-release-26.rpm
Step 2: Install phpmyadmin
After enabling the Remi repository on your system, let us install phpMyAdmin using the yum package manager. All dependencies will be installed automatically.
$ sudo dnf --enablerepo=remi,remi-test install phpMyAdmin
Step 3: Allow remote access
By default, phpMyAdmin only allows access from localhost. If you want to make it accessible from a remote machine, edit phpMyAdmin's Apache configuration file.
$ sudo vi /etc/httpd/conf.d/phpMyAdmin.conf
Now check the following sections. Change Require local to Require all granted, this will disable local restricted access and make phpMyAdmin accessible from the network.
Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdminAddDefaultCharset UTF-8 # Apache 2.4 Require all granted # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1
After making any changes in the Apache configuration file, the Apache service must be restarted to reload the updated settings.
$ sudo service httpd restart
Step 4: Access phpmyadmin in your browser
Now, you can access phpmyadmin in your browser using the following URL. The remote user changes localhost with the system IP address.
http://localhost/phpMyAdmin/
This article has ended here. For more exciting content, you can pay attention to thePHP Video Tutorialcolumn on the PHP Chinese website!
The above is the detailed content of How to install PhpMyAdmin on Fedora. For more information, please follow other related articles on the PHP Chinese website!