![]() Reload the firewall with the command: sudo firewall-cmd -reload The next step is to open the firewall to allow traffic through the standard HTTP port, which can be done with the following command: sudo firewall-cmd -add-service=http -permanent ![]() When the installation completes, you’ll want to start and enable the service with the command: sudo systemctl enable -now httpd Opening the Firewall ![]() Once the update completes, you can then install Apache with the command: sudo dnf install httpd -y If this is a production machine, you should run the update during a time when the server can be rebooted without causing problems for your business. If the kernel is upgraded in the process, you’ll want to reboot the machine. Before you install Apache, you should probably update everything, which can be accomplished with the command: sudo dnf update -y The first thing to do is log in to your instance of Rocky Linux. With those in hand, let’s get to the installation. Of course, if you plan on serving up websites to the public, you’ll also need a domain pointing to your server (but that is beyond the scope of this tutorial). To make this work, you will need a running instance of Rocky Linux and a user with sudo privileges. Let’s walk through the process of installing the Apache web server on Rocky Linux, and then how to serve up your first basic web page. With just a few quick commands, you can have the server up and running in no time. ![]() In fact, setting up a web server with Rocky Linux is much easier than you might think. You might think installing and configuring Rocky Linux as a web server would be challenging. The combination of Rocky Linux and Apache makes for an outstanding platform for serving up your company’s websites, either internally or to the public at large. One very popular use for the OS is as a web server. Rocky Linux is an open source operating system that is ideal for so many server use cases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |