How to Install Apache Server, Configuration, Enable and Start Services

Published: 16 August 2023
on channel: CS BABA
196
28

CS BABA
@csbabaa
https://www.querypanel.com/apache-ins...
---------------------------------------------------------------------------------------------------
Thank you for watching please like share and subscribe
---------------------------------------------------------------------------------------------------

How to Install Apache Server, Configuration, Enable and Start Services #querypanel #apache #linux
If you are looking for a reliable, scalable, and extensible web server, Apache is a great choice.

How to Install Apache Server

Steps:

Update Centos/RedHAT Linux Server

sudo yum update – y


Apache Installation

[root@qp ~]# sudo yum install httpd


Apache Services

Activate Apache

sudo systemctl start httpd

Start/ Restart/ stop

Enable

sudo systemctl enable httpd

Start Apache Services

Systemctl start httpd.services or systemctl start httpd

Verify Apache Service

Systemctl status httpd.services systemctl status httpd


Assign Ports to Apache Server

vi /etc/httpd/conf/httpd.conf

assign Public port and permanent

firewall-cmd –zone=public –permanent –add-service=http

firewall-cmd –zone=public –permanent –add-service=https

firewall-cmd –permanent –add-port=80/tcp

firewall-cmd –permanent –add-port=81/udp

firewall-cmd –permanent –add-port=81/tcp

firewall-cmd –permanent –add-port=80/udp

192.168.60.49/index.html


Public domain example


Configure firewalld to Allow Apache Traffic

Normal web traffic uses the http protocol on Port 80, while encrypted web traffic uses the https protocol, on Port 443.

Modify your firewall to allow connections on these ports

http

sudo firewall-cmd ––permanent ––add-port=80/tcp

sudo firewall-cmd ––permanent ––add-port=80/udp

https

sudo firewall-cmd ––permanent ––add-port=443/tcp

sudo firewall-cmd ––permanent ––add-port=443/tcp

Now reload the firewall

firewall-cmd –reload or sudo firewall-cmd ––reload


Watch video How to Install Apache Server, Configuration, Enable and Start Services online without registration, duration hours minute second in high quality. This video was added by user CS BABA 16 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 196 once and liked it 28 people.