Installation of Apache Web Server 2.4 On Redhat/CentOS 7

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.

Check Out: How To Install Revival Theme On Ubuntu and Linux Mint 

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*

install apache 2.4

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.

/etc/httpd/conf/httpd.conf

install apache on linux

Check Out: Disable HTTP TRACE or TRACK Request In httpd (Apache)

Step 3: Now you have to start the service of Apache

systemctl start httpd

You can check the status by command

systemctl status httpd

install apache linux

Check Out: Check Apache Server Status Using Mod_status In Linux

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

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment