Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Installation Of Apache HTTP Web Server

How many ways you can install Apache?

Installation Types
1.Yum Based
2.RPM Based
3.Source code/ Tar ball Based

Apache install on Centos 7 (Yum Base)

1.Check OS version

# cat /etc/*release

2.Install apache

# yum install httpd httpd-devel

3.Start Service

# systemctl start httpd
# systemctl status httpd

4.Test URL

Browse for http://ip-addr from web client system and same system

5.Add firewall rules

# Firewall-cmd –add-port=80/tcp –permanent
# Firewall-cmd –add-port=80/udp –permanent

Apache install on Centos 7 (Tar ball Base)

1.Check OS version

# cat /etc/*release

2.Install compilation tools

# yum groupinstall ‘development tools’

3.Download dependencies source code and Apache source code Tarballs

  • APR – wget https://dlcdn.apache.org/apr/apr-1.7.0.tar.gz
  • APR-UTILS – wget https://dlcdn.apache.org/apr/apr-util-1.6.1.tar.gz
  • EXPAT – yum install expat expat-devel
  • PCRE – wget http://ftp.pcre.org/pub/pcre/pcre-8.00.tar.gz
  • OpenSSL – wget https://www.openssl.org/source/openssl-1.0.2t.tar.gz
  • HTTP Apache – wget https://dlcdn.apache.org/httpd/httpd-2.4.46.tar.gz

4.Unzip, compile and Install dependencies
Common steps

# tar -zxvf
# cd
# ./configure
# make
# make install

5.Compile and install apr tool

# export LC_ALL=en_US.UTF-8
# export LC_CTYPE= en_US.UTF-8
# cd /opt/tarball
# tar -zxvf apr-1.7.0.tar.gz
# cd apr-1.7.0

# replace “$RM “$cfgfile” with $RM -f “$cfgfile” in configure file

# ./configure – -prefix=/APPS/Apache2446/apr
# make
# make install

6.Compile and install apr-util tool

# cd /opt/tarball
# tar -zxvf apr-util-1.6.1.tar.gz
# cd apr-util-1.6.1
# ./configure –prefix=/APPS/Apache2446/apr-util –with-apr=/APPS/Apache2446/apr
# make
# make install

7.Compile and install pcre tool

# cd /opt/tarball
# tar -zxvf pcre-8.00.tar.gz
# cd pcre-8.00
# ./configure –prefix=/APPS/Apache2446/pcre
# make
# make install

8.Compile and install openssl tool

# cd /opt/tarball
# tar -zxvf openssl-1.0.2t.tar.gz
# cd openssl-1.0.2t
# ./config -fPIC –prefix=/APPS/Apache2446/openssl
# make
# make install

9.Compile and install httpd

# cd /opt/tarball
# tar -zxvf httpd-2.4.46.tar.gz
# cd httpd-2.4.46
# ./configure –prefix=/APPS/Apache2446 –with-apr=/APPS/Apache2446/apr –with-apr-util=/APPS/Apache2446/apr-# util –with-pcre=/APPS/Apache2446/pcre –with-ssl=/APPS/Apache2446/openssl
# make
# make install
# /APPS/Apache2446/bin/apachect start

10.Add 80 port in firewall and reload

# firewall-cmd –add-port=80/tcp –permanent
# firewall-cmd –add-port=80/udp –permanent
# firewall-cmd –reload

11.Test URL

Browse for http://ip-addr from web client system and same system

Apache install on Ubuntu (Apt Base)

1.Check OS version

# cat /etc/*release

2.Install Apache using Apt

# apt install apache2

3.Start Apache2 service

# systemctl start apache2

4.White list apache2 on firewall ufw

# ufw allow apache2

5.Test URL

Browse for http://ip-addr from web client system and same system

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

How to Configure HTTP/HTTPS Proxy on Linux and Windows (CLI, GUI, Registry, and APT)

Set up proxy access correctly on Windows and Linux for command-line tools, package managers, and system-level use. This guide covers quick commands, persistent configuration, and common troubleshooting steps.

Read More

Linux pmap Command Guide: Inspect Process Memory Maps with Practical Examples

Learn how to use the Linux pmap command to inspect per-process memory mappings, compare output modes, and troubleshoot high memory usage quickly. This updated guide includes workflow steps, command examples, and interpretation tips.

Read More

iostat Command Guide for Linux: 20 Practical Examples for CPU and Disk I/O Troubleshooting

Learn how to use iostat to monitor CPU and storage performance on Linux systems. This revised guide covers installation, 20 practical commands, metric interpretation, and a troubleshooting workflow.

Read More

xargs in Linux: Practical Commands, Safe Patterns, and Pipeline Workflows

This guide explains how to use xargs effectively in Linux/Unix shells, from basic stdin handling to safe file operations and parallel execution. You’ll learn practical command patterns, portability caveats, and safer alternatives.

Read More

Linux mount and umount Commands: Practical Examples, /etc/fstab, and Safe Unmounting

Learn how to mount and unmount filesystems reliably on Linux, from one-off commands to persistent /etc/fstab entries. This guide covers common filesystem types, command comparisons, and safe troubleshooting steps.

Read More

How to Use gsh to Run Linux Commands Across Multiple Servers

gsh (Group Shell) lets you execute one command across many Linux hosts from a single terminal. This guide explains host grouping with /etc/ghosts, core options, and practical command patterns.

Read More