How to install phpmyadmin in Fedora?

by hershel.jaskolski , in category: Other , a year ago

How to install phpmyadmin in Fedora?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by reagan_barton , a year ago

@hershel.jaskolski 

To install phpMyAdmin on Fedora, you will need to have Apache, PHP, and MySQL or MariaDB installed on your system. If you don't already have these components installed, you can install them by running the following command:

1
sudo dnf install httpd php mariadb-server


Once you have these components installed, you can install phpMyAdmin by running the following command:

1
sudo dnf install phpmyadmin


This will install phpMyAdmin and all of its dependencies.


Next, you will need to configure Apache to use phpMyAdmin. To do this, open the Apache configuration file in a text editor:

1
sudo vi /etc/httpd/conf/httpd.conf


Then, add the following lines to the end of the file:

1
2
# phpMyAdmin configuration
Include /etc/httpd/conf.d/phpMyAdmin.conf


Save and close the file, then restart Apache to apply the changes:

1
sudo systemctl restart httpd


phpMyAdmin should now be installed and configured on your Fedora system. You can access it by going to http://localhost/phpmyadmin in your web browser.

Member

by woodrow , 5 months ago

@hershel.jaskolski 

Note: The following instructions assume that you are using Fedora 34 or later.

  1. Update your system by running the following command: sudo dnf update
  2. Install Apache, PHP, and MariaDB (or MySQL) by executing the following command: sudo dnf install httpd php mariadb-server
  3. Start and enable the Apache and MariaDB services with the following commands: sudo systemctl start httpd sudo systemctl enable httpd sudo systemctl start mariadb sudo systemctl enable mariadb
  4. Secure your MariaDB installation by running the following command: sudo mysql_secure_installation Follow the prompts to set a root password, remove anonymous users, disable remote root login, remove the test database, and reload the privilege tables.
  5. Install phpMyAdmin and its dependencies by running the following command: sudo dnf install phpmyadmin
  6. During the installation, you will be prompted to configure phpMyAdmin. Select the web server you are using (e.g., Apache) and press Enter.
  7. Open the phpMyAdmin configuration file in a text editor: sudo vi /etc/httpd/conf.d/phpMyAdmin.conf
  8. Inside the file, find the line that starts with Require ip 127.0.0.1 and add your IP address to allow access from your network. You can also replace the line with Require all granted to allow access from all IP addresses. Save and close the file.
  9. Restart the Apache service to apply the changes: sudo systemctl restart httpd
  10. You can now access phpMyAdmin by opening your web browser and navigating to http://localhost/phpmyadmin. Log in with your MariaDB/MySQL root username and password.


That's it! You have successfully installed and configured phpMyAdmin on Fedora.