Apache

Install and Setup Apache Web Server in Linux

Apache Web Server is an open-source web server creation, deployment and management software. Initially developed by a group of software programmers, it is now maintained by the Apache Software Foundation.

Apache Web Server is designed to create web servers that have the ability to host one or more HTTP-based websites. Notable features include the ability to support multiple programming languages, server-side scripting, an authentication mechanism and database support. Apache Web Server can be enhanced by manipulating the code base or adding multiple extensions/add-ons.

Technically, a web server is a daemon that speaks the https(s) protocol, a text-based protocol for sending and receiving object over a network connection. The http protocol is sent over the wire in clear text, using port 80/TCP by default (though other ports can be used).

There is also a TLS/SSL encrypted version of the protocol called https that uses port 443/TCP by default.

In this article I will show how to install and setup Apache web server on Linux.

Install and Setup Apache Web Server in Linux

Follow the below steps to install and setup apache web server in Linux.

In the RHEL 7 and CentOS 7 there is a group of package called “web Server” which includes the below packages.

httpd
httpd-tools
httpd-manual
crypto-utils
mod_fcgid
mod_ssl
perl-Newt

1. ollow the below command to install Apache Web Server only.

# yum install httpd -y

2. Install Apache Web Server from apache group packages.

# yum groupinstall "Web Server" -y

3. Start, stop and restart Apache Linux Web Server.

To start

# systemctl start httpd

To stop

# systemctl stop httpd

To restart

# systemctl restart httpd

Enable Apache web server at boot.

# systemctl enable httpd

Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

Configure Apache HTTPD Server in Linux

After installing Apache web server on your Linux system now follow the below link to configure it.

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment