Apache is a free, open source and popular HTTP Server that runs on Unix-like operating systems including Linux and also Windows OS. Since its release 20 years ago, it has been the most popular web server powering several sites on the Internet. It is easy to install and configure to host single or multiple websites on a same Linux or Windows server.
In this article, we will explain how to install, configure and manage Apache HTTP web server on a CentOS.
1. First update the system software packages to the latest version.
yum install httpd
3. Once Apache web server installed, you can start it first time and enable it to start automatically at system boot.
systemctl start httpd systemctl enable httpd
systemctl status httpd
Configure firewalld to Allow Apache Traffic
4. By default, CentOS built-in firewall is set to block Apache traffic. To allow web traffic on Apache, update the system firewall rules to permit inbound packets on HTTP and HTTPS using the commands below.
firewall-cmd --zone=public --add-service=http --permanent firewall-cmd --zone=public --add-service=https --permanent firewall-cmd --reload
Test Apache HTTP Server on CentOS
5.Now you can verify Apache server by going to the following URL, a default Apache page will be shown.
Server Name OR IP
Just another networker,certified network specialist with B.Sc. in Computer engineering and experience of advanced networking specialized.Extensive experience in network design, configuration, support as well as troubleshooting complex networking issues. practicing high-availability, faster convergence and network security to protect data with purposeful Network Architecture, Capacity Planning and Best Practices.
Subscribe to the best creative feed.
Don't worry, we don't spam