Installation of Apache Web Server 2.4
Installation of Apache Web Server 2.4 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.
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.
Let’s Begin the Installation
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.
By command 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.
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