Installing selinux makes wordpress inaccessible

background:
my vps installed centos7, to build a wordpress blog through the Lnmp environment. Yesterday, I found that there were a lot of violent login attempts, so I planned to disable port 22. After following this article, I did not succeed in ssh login with the new port, but the blog could not be accessed. Ping can be connected to ping. I tried to disable selinux and found that
https://www.centos.bz/2017/08.

ask for advice on how to recover


found the problem. Just turn off the firewall
systemctl disable firewalld
systemctl stop firewalld

Menu