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

Опубликовано: 16 Август 2023
на канале: 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


Смотрите видео How to Install Apache Server, Configuration, Enable and Start Services онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CS BABA 16 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 196 раз и оно понравилось 28 людям.