install apache
How to Install and configure apache on RHEL/Centos 7

How to Install Apache Server on RHEL / Centos 7

apache web server linux that runs on UNIX like operating system including Linux and also in Window. It is developed and Maintained by Apache Software Foundation, It is Open Source Software Available for Free & it is Fast, reliable and secure. It is Highly customized to meet the needs of many different environments by Using Extensions and Modules. Apache (http) is easy to install, Configure and manage that why Most WordPress Hosting providers use apache as their web software.

In this Tutorial, we will Explain How to configure and Install apache server in linux (Centos / RHEL 7)

Install Apache Server

  1. Update the system software Packages to latest version

2. Now, To install apache web server (apache download)

install Apache on Centos 7
install Apache on Centos 7

apache web server configuration

3. After Installing Apache Web Server few things you need to Know.

  • Start Apache :

  • restart apache centos :

  • Persist Apache :

  • check apache status / apache status page :

Start, Status and persist Apache
Start, Status and persist Apache

firewall configuration to Allow Traffic on Apache

4. In Centos by Default firewall is set to Block Apache traffic. if you want Allow web Traffic on Apache you need to Update firewall Rules to permit inbound packets on HTTP and HTTPS.

Start / open Firewall with the following command if you didn’t started yet.

Firewall Rule for Apache

configure firewall for apache
configure firewall for apache

Test Apache HTTP Server

Get Apache Server IP

5. Now, You can Test or Verify Apache Web Server By using your Server domain Name or server IP Address in URL, it will show a Default Apache testing Page.

Make changes in this file to access website website with domain name. (Replace geekyvaibhav.local)

Here, 192.168.219.128 is my Server IP you can find it using ip r command & geekyvaibhav.local is my Server Domain Name.

Default apache Welcome Page
Default apache Welcome Page

Apache Important Files and Directories

  • Apache default server document root directory (stores web files): /var/www/html
  • Default server root directory (Contains configuration files): /etc/httpd
  • Main Apache configuration file: /etc/httpd/conf/httpd.conf
  • Additional configurations can be added in: /etc/httpd/conf.d/
  • apache default virtual host : /etc/httpd/conf.d/httpd-vhosts.conf
  • all Dummy Files of Apache : /usr/share/doc/httpd-2.4.6
  • Default Page (Testing Page) of Apache : /usr/share/httpd/noindex
  • Configurations for modules: /etc/httpd/conf.modules.d/

Video Tutorial :

This is all about How to install apache Linux (RHEL/Centos 7). If you want to ask any question about this Tutorial comment Below and always Remember to stay connected with the GeekyVaibhav.com for Latest updates about the Linux.

LEAVE A REPLY

Please enter your comment!
Please enter your name here