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 a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Java Installation Guide in Linux & Windows

DOWNLOAD OPEN JDK & JRE JAVA PACKAGE FROM – https://jdk.java.net/archive/ Download and Install JDK/JRE 7 in Centos & RHEL Download and Install JDK/JRE 8 in Centos &…

Read More

Linux Tutorials: Commands for Linux Administrator

1. sudo – Execute commands with elevated privileges, a fundamental for system administration. 2. useradd – Create a new user account, essential for managing user access. 3….

Read More

Linux Tutorials: How to troubleshoot Linux Server?

If a linux-build-server suddenly starts getting slow, I would divide my approach / troubleshooting into 3 section as follows; System Level troubleshooting Application Level troubleshooting Dependent Services troubleshooting…

Read More

What is Linux and use cases of Linux?

What is Linux? Linux is an open-source, Unix-like operating system kernel first created by Linus Torvalds in 1991. It serves as the foundation for a wide range…

Read More

Jenkins Tutorial: Install Jenkins on Ubuntu

In this tutorial we are going to install Jenkins on Ubuntu operating system. Ubuntu is another debian based operating system – open sourced and highly loved by…

Read More

Linux Performance Monitoring Guide

CPU Memory Network Storage Device and Input I/O Storage Capacity Storage Controller CPU Memory and I/O Interconnect Rajesh Kumar I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge…

Read More