Selinux Broke Apache - I change httpd to run on another port and selinux did not like it.
Channel:
Subscribers:
1,220
Published on ● Video Link: https://www.youtube.com/watch?v=KFAJsv_AiOE
[ec2-user@ip-172-31-83-243 ~]$ history
1 clear
2 getenforce
3 sudo yum -y install httpd
4 sudo systemctl enable httpd
5 sudo systemctl start httpd.service
6 sudo netstat-tnlp
7 sudo netstat -tnlp
8 grep ort /etc/httpd/*
9 sudo grep ort /etc/httpd/*
10 sudo grep ort /etc/httpd/conf/*
11 sudo vi /etc/httpd/conf/httpd.conf
12 sudo systemctl restart httpd.service
13 sudo systemctl status httpd.service
14 audit2allow -a -w
15 sudo audit2allow -a -w
16 sudo semanage port -a -t http_port_t -p tcp 9876
17 sudo systemctl restart httpd.service
18 sudo netstat -tnlp
19 history