![]() Provide a strong password and confirm it. So press ENTER since no Root password is configured by default, and then ‘Y’ to set a root password. The first step is to set the root password. As such, we need to take additional steps to harden the database server. MariaDB’s default settings are weak and pose a few vulnerabilities that can be leveraged by hackers to breach the database server. To confirm that MariaDB daemon is running, run the command: $ sudo systemctl status mariadb $ sudo systemctl enable -now mariadbĪnd finally, start the MariaDB service. When the installation is complete, enable MariaDB to start upon a reboot or during booting. To install MariaDB, run the command: $ sudo dnf install mariadb-server mariadb The AppStream repository for Rocky Linux provides MariaDB 10.3 by the time of writing down this guide. We will focus on MariaDB thanks to its numerous enhancements including faster and safer replication, numerous high-performance storage engines, backward compatibility with MySQL, and better overall performance when compared to MySQL. Two options can suffice – MariaDB and MySQL. Next, we need to install a database server. $ sudo firewall-cmd -add-service=http -permanent Run the commands below to allow HTTP traffic and reload the firewall. If you are getting an error on your browser when trying to access the page, then perhaps the firewall is blocking HTTP traffic. This should give you the Apache HTTP test page, an indicator that all is well. ![]() To verify that Apache is running on Rocky Linux 8, issue the command: $ sudo systemctl status httpdĪnother nifty way of verifying that Apache is active and running is by browsing the server’s IP address or Fully Qualified Domain Name ( FQDN) as shown. $ sudo systemctl enable httpdĪnd then start the Apache httpd daemon as shown. ![]() Thereafter, enable the webserver to start at boot time. This installs the httpd package along with other dependencies. To install Apache, launch your terminal and run the command. When installed, the httpd daemon runs in the background awaiting incoming HTTP requests from client devices. This is provided by the httpd software package. The first component that we are going to start installing is the Apache webserver. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |