2.9 C
Amsterdam
angeloma
angeloma
Senior Writer and partner

Install PHPMyAdmin on Fedora 33

Hello, friends. Fedora is popular among developers and computer students. So it’s good to learn how to install PHPMyAdmin on Fedora 33 for those who don’t know it.

PHPMyAdmin is an open-source application created in PHP that provides the administration of a MySQL or MariaDB database from a comfortable web interface. It is simply installed on the server, we make a few small configurations and that’s it. That’s it. Without consuming many resources you will have a quality application.
So, let’s get started.

Install PHPMyAdmin on Fedora 33

Fedora 33 is characterized by fairly comprehensive repositories. So we won’t have any problems installing it.

So, open a terminal and update Fedora 33.

sudo dnf update

After that, you can start the installation of PHPMyAdmin by running the following command

sudo dnf install phpMyAdmin

If you do not have a web server installed, the Apache web server will be installed during the process.

Therefore, we have to start and enable the Apache webserver to load along with the system.

sudo systemctl start httpd
sudo systemctl enable httpd

After that, check the status of the service to see if everything is in order.

sudo systemctl status httpd
● httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/httpd.service.d
             └─php-fpm.conf
     Active: active (running) since Thu 2021-02-25 16:22:50 CET; 5s ago
       Docs: man:httpd.service(8)
   Main PID: 11329 (httpd)
     Status: "Started, listening on: port 80"
      Tasks: 213 (limit: 2258)
     Memory: 15.2M
        CPU: 53ms
     CGroup: /system.slice/httpd.service
             ├─11329 /usr/sbin/httpd -DFOREGROUND
             ├─11330 /usr/sbin/httpd -DFOREGROUND
             ├─11331 /usr/sbin/httpd -DFOREGROUND
             ├─11332 /usr/sbin/httpd -DFOREGROUND
             └─11333 /usr/sbin/httpd -DFOREGROUND

Feb 25 16:22:50 osradar systemd[1]: Starting The Apache HTTP Server...
Feb 25 16:22:50 osradar httpd[11329]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive g>
Feb 25 16:22:50 osradar systemd[1]: Started The Apache HTTP Server.
Feb 25 16:22:50 osradar httpd[11329]: Server configured, listening on: port 80

So all is well. Also, remember that port 80 has to be open to accept connections even if it is from localhost and logically if PHPMyAdmin is installed on a server.

firewall-cmd --add-port=80/tcp --permanent
Success
firewall-cmd --add-port=443/tcp --permanent
Success
firewall-cmd --reload
Success

Configuring PHPMyAdmin

If you have installed the application on your computer locally, you can open a web browser and access http://localhost/phpmyadmin to see the login screen.

But, if you have done this installation on a remote server, which can solve some problems, then you may want to make a prior adjustment to the Apache configuration file.

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

And change the <Directory /usr/share/phpMyAdmin> section to this one

<Directory /usr/share/phpMyAdmin>
    AddDefaultCharset UTF-8
    Require all granted
</Directory>

Save the changes and now you will be able to access from any computer via http://server/phpmyadmin

PHPMyAdmin on Fedora 33
PHPMyAdmin on Fedora 33

So, enjoy it.

Conclusion

PHPMyAdmin is a vital tool for many developers. It allows you to visualize MySQL or MariaDB data quickly through a well-designed graphical interface that does not consume many computer resources. Thanks to this post, you can enjoy the latest stable version of PHPMyAdmin on Fedora 33

- Advertisement -

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Donate to Osradar

Latest article

x