All Categories
Cart 0
No products in the cart.

Install Apache on CentOS 9 Stream - Step by step guide ?

This article covers how to install the Apache webserver on CentOS 9 Stream. In fact, Apache is a popular Linux-based web server application. It is part of the LAMP stack (Linux, Apache, MySQL, PHP) that powers much of the internet.

 

How to install Apache Web Server on CentOS 8 ?

1. Update Software Repository

Open a terminal window, and update the repository package lists by entering the following:

$ sudo yum update

2. Install Apache

Now you can install Apache with the command:

$ sudo yum –y install httpd

Note: "httpd" is the name for the Apache service in CentOS. The –y option automatically answers yes to the confirmation prompt.

3. Start and Manage Apache Web Server

Apache is a service that runs in the background.

Start the Apache service by entering the following:

$ sudo systemctl start httpd

To configure Apache to run on startup:

$ sudo systemctl enable httpd

To check the status of the Apache service:

$ sudo systemctl status httpd

To reload Apache (reloads configuration files to apply changes):

$ sudo systemctl reload httpd

To restart the entire Apache service:

$ sudo systemctl restart httpd

To stop Apache:

$ sudo systemctl stop httpd

To disable Apache at system startup:

$ sudo systemctl disable httpd

 

In this guide, you will learn how to install Apache on CentOS 9 Stream.

 



icon

Sign up to our Newsletter

...and get one free support ticket.