22.2 F
Nashville
Friday, December 6, 2024

How to Install the Apache Web Server on CentOS Stream 9

Apache is available within CentOS's default software repositories, which means you can install it with yum.

How to Create Users in Linux

Linux is a multi-user system, meaning that more than one person can interact with the same system simultaneously.

How to Create Bash Aliases

This tutorial demonstrates how to use the alias command to create personalized shortcuts, which can help you save time and feel less frustrated.

Top Apache Commands

Pre-requisites:

A system with CentOS Stream 9 installed and running
Access to a terminal or command line
Root or sudo privileges

This guide will review the most important and frequently used Apache commands that you should know as a web developer or system administrator.

Installing Apache

dnf install httpd

Start Apache

systemctl start httpd

Stop Apache

systemctl stop httpd

Restart Apache

systemctl restart httpd

Test Apache Configuration

httpd -t

View Apache Status

systemctl status httpd

Check Apache Version

httpd -v

List loaded modules in Apache

httpd -M

Display an overview of the VirtualHosts

httpd -S

Output a short summary of available command line options

httpd -h

List of command line options from the official Apache site

https://httpd.apache.org/docs/current/programs/httpd.html

Similar Articles

- A word from our sponsors -

Follow Us

Most Popular