Installation of Apache 2.4 Web Server is the most widely used Web Server Software. It’s an Open Source Web Server and absolutely free to use. It has the ability to host one or more HTTP based website. We can install the apache 2.4 server on Linux CentOS.
It’s a fast and secure web server and uses the port number 80 for HTTP and 443 port for HTTPS. We can host multiple websites with a single IP address using Apache Web Server.
We can easily install an apache web server on Linux using the yum commands. Let’ see, the installation of the Apache web server in Linux.
We can also install apache using the source code on Linux and we need to download the package from the official’s site.
Let’s Begin the Installation of the apache webserver:
We’re going to install the Apache webserver on Redhat 6/7 version and follow our steps to install it. I’m assuming you have Yum configured on the server.
First check Apache already installed or not. If you get no output means It is not installed.
rpm –qa httpd*
Step 1: Install Apache Packages
yum install httpd* -y
Check Out: How To Hide Apache Server Name
After running this command Apache would be installed and check it by command.
rpm –qa | grep –I httpd
It will show you all the dependencies required by the Apache webserver.
Step 2: You can find the configuration file of Apache on this location.
Step 3: Now you have to start the service of Apache
systemctl start httpd
You can check the status by command
systemctl status httpd
You also have to start service at boot time. So use this command
systemctl enable httpd
YouTube Link: Install Apache
That’s it install apache linux centos 2.4