# systemctl start httpd; systemctl enable httpd; systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: active (running) since Tue 2021-11-16 03:50:34 UTC; 14s ago Docs: man:httpd.service(8)
Main PID: 94043 (httpd)
Status: "Running, listening on: port 443, port 80"
Tasks: 213 (limit: 12436)
Memory: 25.4M
CGroup: /system.slice/httpd.service
├─94043 /usr/sbin/httpd -DFOREGROUND
├─94044 /usr/sbin/httpd -DFOREGROUND
├─94045 /usr/sbin/httpd -DFOREGROUND
├─94046 /usr/sbin/httpd -DFOREGROUND
└─94047 /usr/sbin/httpd -DFOREGROUND
...output omitted...
Firewall Setup
# firewall-cmd --zone=public --permanent --add-service=http
success
Allow HTTPS service by running the following command:
# firewall-cmd --zone=public --permanent --add-service=https
success
Reload the firewall settings:
# firewall-cmd --reload
success
Verify the firewall settings:
# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: enp1s0
sources:
services: cockpit dhcpv6-client http https ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
--------------------
[root@dns ~]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: enp0s31f6
sources:
services: dhcpv6-client http https imaps pop3s smtp smtps ssh
ports: 4990-4999/udp 465/tcp 80/tcp 110/tcp 8080/tcp 10000/tcp 143/tcp 3306/tcp 5000/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
----------------------
[root@dns ~]# rpm -qa httpd
httpd-2.4.6-99.el7.centos.1.x86_64