Open a web browser and point it to (Where SERVER is the IP address of your hosting server) and you should be prompted for the login credentials.Ĭongratulations, you’ve just installed phpMyAdmin on Rocky Linux, for easier MySQL database administration.9 Our Guiding Principles In this tutorial, we will go through the steps to installing and configuring phpMyAdmin in CentOS 7. Sudo systemctl restart httpd How to access the phpMyAdmin web interfaceĮverything should now be ready to go. Sudo chcon -Rv -type=httpd_sys_content_t /usr/share/phpmyadmin/* In order for SELinux to allow traffic to the alternative location (/usr/share/phpmyadmin), we need to make it aware. In that file, paste the following: Alias /phpmyadmin /usr/share/phpmyadmin Our next step is to create an Apache config file with the command: Sudo chmod 777 /usr/share/phpmyadmin/tmp How to create an Apache config file Sudo chown -R apache:apache /usr/share/phpmyadmin Scroll down to the Directories for saving/loading files from sever section and add the following line:Ĭreate a new tmp directory and give the everything the necessary permissions/ownership with the following commands: Paste the 32-bit secret string between the two single quotes. Open the phpMyAdmin configuration file with the command: Now, we need to generate a 32-bit secret string with: Change into the phpmyadmin directory with:Ĭopy the sample configuration file with the command: Sudo mv phpMyAdmin-*-all-languages /usr/share/phpmyadmin How to configure phpMyAdminįor our next trick, we’ll configure phpMyAdmin. Move and rename the newly created directory with: If unzip isn’t installed, install it with: Make sure to check the official download page to ensure you’re downloading the most recent version. Next, we’ll download the phpMyAdmin file with the command: Sudo dnf install php php-common php-opcache php-cli php-gd php-curl php-mysqlnd php-xml -y How to download and unpack phpMyAdmin Now we can install PHP and the various modules required for phpMyAdmin with: We now need to install PHP, which is done in a much different manner than it is on Ubuntu. Mysql_secure_installation How to install PHP Sudo firewall-cmd -permanent -zone=public -add-service=https Sudo firewall-cmd -permanent -zone=public -add-service=http Next, we need to allow HTTP services through the firewall with the following commands: How to install Apache and MySQLīefore you install the web and database server, make sure to update Rocky Linux with:Īfter the update completes, reboot (if the kernel is updated) and then install the webserver with: To get phpMyAdmin installed, you’ll need a running instance of Rocky Linux and a user with sudo privileges. SEE: Kubernetes: A cheat sheet (free PDF) (TechRepublic) What you’ll need Once you’ve walked through this tutorial, you’ll have phpMyAdmin up and running in minutes. The problem with phpMyAdmin is that the installation on Rocky Linux (and most RHEL clones) isn’t nearly as straightforward as it is with Ubuntu. And if your servers have migrated from CentOS to Rocky Linux, you might be a bit worried about getting such a GUI up and running. If you’re a database administrator, and you have to manage either MySQL or MariaDB on your data center servers, you know the benefit of having a good GUI to make the task a bit more efficient. Oracle Linux checklist: What to do after installation This Linux learning path will help you start using the OS like a proītop is a much-improved take on the Linux top command Image: iStock/GaudiLab Open source: Must-read coverage If you've migrated your servers from CentOS to Rocky Linux, you might want to install phpMyAdmin. Databases are considerably easier to manage from within a GUI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |