I'm trying to setup LAMP to CentOS7 with a guide. I tried to run these commands to allow HTTP and HTTPS traffic:
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
But system give this error:
FirewallD is not running
So I searched for it then apply these commands:
systemctl enable firewalld
systemctl start firewalld
Then it printed "completed" output but my connection was aborted and I cannot connect to the server with IP:Port with PuTTy anymore.
What should I do? The only access to the server was that way for me. I have no physical access to the server.