0% found this document useful (0 votes)
4 views5 pages

OSP201 SPRING2024 SecureApache

The document provides instructions on installing and configuring Apache web server and firewalld on a server. It includes steps to install, start, enable Apache and firewalld, and add permanent firewall rules to allow traffic on ports 80 and 22.

Uploaded by

tu03xly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

OSP201 SPRING2024 SecureApache

The document provides instructions on installing and configuring Apache web server and firewalld on a server. It includes steps to install, start, enable Apache and firewalld, and add permanent firewall rules to allow traffic on ports 80 and 22.

Uploaded by

tu03xly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1.

Challenge
Install, Start, and Enable Apache Web Server
1. Install Apache web server:
sudo yum install httpd

2. Start Apache web server:


sudo systemctl start httpd
3. Check the status of Apache web server:
sudo systemctl status httpd

4. Enable Apache to start at boot:


sudo systemctl enable httpd

2. Challenge
Install Start and Enable `firewalld`
1. Install firewalld:
sudo yum install firewalld

2. Start firewalld:
sudo systemctl start firewalld
3. Check the status of firewalld:
sudo systemctl status firewalld

4. Enable firewalld:
sudo systemctl enable firewalld

3. Challenge
Implement Permanent Firewall Rules to Allow Traffic on Ports 80 and 22
1. Open port 80:
sudo firewall-cmd --add-port=80/tcp --permanent
2. Open port 22:
sudo firewall-cmd --add-port=22/tcp --permanent

4. Challenge
Re-Log in via SSH to Confirm Your Firewall Configuration Is Correct and
Access the Web Server Default Page via the Browser
1. Log out and log back in via SSH:
exit
ssh cloud_user@<SERVER_PUBLIC_IP>

You might also like