Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Databases»MySQL»How To Install phpMyAdmin on Fedora

    How To Install phpMyAdmin on Fedora

    By RahulApril 27, 20223 Mins Read

    PhpMyAdmin is a popular web-based client for managing MySQL server. The phpMyAdmin is written in PHP programming language. It provides a user-friendly web interface to access and manage MySQL server and databases.

    Advertisement

    It allows you to create a database and users and assign privileges to users. You can create tables in the database and also perform insert, update, and delete operations in table records.

    This article will help you with how to install phpMyAdmin on Fedora 34/33/32/31/30 systems.

    System Requirements

    Assuming you already have a LAMP (Apache, MySQL, and PHP) stack installed on your system. Here are the minimum requirements for installing the latest version phpMyAdmin.

    • Apache >= 2.2
    • PHP >= 7.1
    • MySQL/MariaDB >= 5.5

    Alternatively, you can use our tutorial to install and configure LAMP stack on Fedora system.

    Next, you can follow one of the below methods to install phpMyAdmin on a Fedora Linux system.

    Method 1: Installing phpMyAdmin on Fedora from Default Repository

    The latest Fedora versions default DNF repositories contain the latest version of the phpMyAdmin packages. So we recommend installing phpMyAdmin on Fedora from the default repository.

    sudo dnf install phpmyadmin 
    

    Now, you can get phpMyAdmin access by visiting http://localhost/phpmyadmin URL in a web browser.

    You will get instructions to allow phpMyAdmin remote access below in this article.

    Method 2: Installing phpMyAdmin on Fedora from REMI Repository

    In older Fedora versions the default repositories may not have updated versions. In that case, you can use REMI repositories, that contains the latest version of phpMyAdmin.

    1. First, configure the REMI repository on your system
      • On Fedora 35:
        sudo rpm -Uvh http://rpms.famillecollet.com/fedora/remi-release-35.rpm 
        
      • On Fedora 34:
        sudo rpm -Uvh http://rpms.famillecollet.com/fedora/remi-release-34.rpm 
        
    2. After enabling the REMI repository on your system, let's start with the installation of phpMyAdmin using the DNF package manager. All the dependencies will be automatically installed on your system.
      sudo dnf --enablerepo=remi,remi-test install phpMyAdmin 
      

      Press 'y' for the confirmation asked by the DNF tool to complete the installation.

    3. After making any changes in the Apache configuration file, you must restart the Apache service to reload updated settings.
      sudo systemctl restart httpd 
      

    Allow phpMyAdmin Access to Remote Hosts

    If you want to access phpMyAdmin from the remote host. Edit the phpMyAdmin web server configuration file in a text editor:

    sudo nano /etc/httpd/conf.d/phpMyAdmin.conf 
    

    Then replace Require local with Require all granted to allow remote hosts to access phpMyAdmin.

    How to Install phpMyAdmin on Fedora Linux
    Allow phpMyAdmin to Remote Systems

    Save the changes and restart the HTTPD service to apply.

    sudo systemctl restart httpd 
    

    All done.

    Access phpMyAdmin in Browser

    Now you can access phpMyAdmin in any browser using the following URL. The remote users need to change localhost with the system's IP address or hostname.

  • http://localhost/phpmyadmin/
  • Install phpmyadmin on fedora

    Congratulation's You have successfully installed phpMyAdmin. Using single phpMyAdmin we can manage multiple MySQL servers by adding multiple remote MySQL server. Use this article to add multiple MySQL hosts in phpMyAdmin.

    MySQL phpmyadmin
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Prevent SQL-injection in PHP using Prepared Statements

    Preventing SQL injection attacks with prepared statements in MySQL

    Securing MySQL Database with Limited User Permissions

    View 2 Comments

    2 Comments

    1. Vincent Morel on April 26, 2022 1:46 pm

      On Fedora a simple ‘sudo dnf install phpmyadmin’ works as a charm. 🙂

      Reply
    2. Oliver Russell on August 13, 2018 2:10 pm

      Manually installing and configuring PHPmyadmin on a server is quite difficult. Why not go with a PHP cloud hosting provider, like Cloudways, where PHPMyAdmin is available by default. There is no need to install or configure it manually.

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.