Installing Apache on AlmaLinux 9 or Rocky Linux 9 10

Apache HTTP Server popularly often known as “Apache” is an open-source internet server software program platform to host and serve web sites or internet apps. Because of the efficiency and reliability together with the power to scale up, this internet server is fashionable even among the many service suppliers and enterprises for internet hosting purposes. So, in case you are utilizing AlmaLinux or Rocky Linux 9 launch and planning to install Apache internet server then this tutorial will present a serving to hand in that.

Why Choose Apache?

Let’s first know some factors to know why Apache is so fashionable amongst customers for internet hosting web sites

  1. Open Source: The key motive Apache is utilized by many customers is, that it comes freed from value and anybody for particular person or company functions can use it with out buying any license.
  2. Reliability: People have belief in it due to its stability and reliability with an enormous neighborhood of builders together with intensive documentation.
  3. Performance: Due to its capability to deal with a lot of concurrent connections whereas effectively sustaining the consumption of sources, Apache is broadly used to serve static and dynamic content material effectively.
  4. Modular Architecture: With the assistance of modules customers can lengthen the capabilities and options of Apache reminiscent of SSL/TLS encryption, URL rewriting, authentication, and extra.

Step-by-Step Installation Guide:

Follow these steps to install Apache on AlmaLinux or Rocky Linux 9:

Step 1: Update system bundle repositories

Those who hold their system up to date, nicely don’t must run this command however nonetheless, we advocate it. Running the replace command is not going to solely install the most recent accessible updates but additionally refresh the repository cache of packages.

sudo dnf replace

Step 2: Apache set up on Almalinux or Rocky 9

We are usually not required to obtain any bundle by including some third-party repository with regards to the set up of Apache as a result of the system’s default Repos are sufficient. Hence, simply in your command terminal execute the given command and you’re completed.

sudo dnf install httpd
command to install Apache in Almalinux

Step 3: Start Apache Service

Even after finishing the set up of the Apache internet server, by default, the service of Apache is not going to begin routinely, so on this step utilizing the given command we not solely begin it but additionally allow the identical to run routinely with the system boot or in case of service crash.

sudo systemctl allow --now httpd

Step 4: Configure Firewall

Those who’ve lively firewalls on their server want to permit HTTP and HTTPS to entry the web site and its content material within the browser through ports 80 and 443.

sudo firewall-cmd --permanent --add-service={http,https}
sudo firewall-cmd --reload

Step 5: Verify Apache Installation

The set up is accomplished however we should always verify whether or not our Apache internet server is operating with none type of error and whether or not its take a look at is accessible or not.

To confirm and test the standing of the Apache service:

sudo systemctl standing httpd
command to check httpd service status

Whereas, to verify that Apache is serving the take a look at web page correctly, simply open a browser on any system that may entry the server’s IP tackle or the area title the place you’ve gotten put in the Apache internet server. Now, within the URL tackle bar of the browser enter the IP or area of the server and it’s best to see the default Apache take a look at web page.

apache installation Almalinux 9 or rocky 9


Apache set up is kind of easy not on Almalinux however even for Ubuntu, Debian, and different related distros. However, organising a whole bundle of LAMP and internet hosting a web site over it may be a posh job, particularly for brand new customers. Therefore, in case you are going public together with your web site then it is strongly recommended to make use of some web-based management panel reminiscent of CPANEL on Almalinux, you can even install cPanel on Ubuntu, in case you are not aware of RHEL-based programs.

Other Articles:

The Right Way to Install Mosh on AlmaLinux or Rocky Linux 9/8

Previous article

Installing Kernel Headers on AlmaLinux 9 or Rocky Linux 9

Next article

You may also like


Leave a Reply

More in Almalinux