Install Apache: First, clean-up yum:
As a matter of best practice we’ll update our packages:
Installing Apache is as simple as running just one command:
Allow Apache Through the Firewall Allow the default HTTP and HTTPS port, ports 80 and 443, through firewalld:
And reload the firewall:
Configure Apache to Start on Boot And then start Apache:
Be sure that Apache starts at boot:
Other useful commands for Apache To check the status of Apache:
To stop Apache: