This is an example on how to allow some traffic input to CentOS server.
At first you already install apache, mod_ssl and mysql, but you still cannot access apache or mysql.
There is a possibility that you have not set up your firewall.
Open iptables configuration using your favorite editor.
Don't forget to restart iptables
At first you already install apache, mod_ssl and mysql, but you still cannot access apache or mysql.
There is a possibility that you have not set up your firewall.
Open iptables configuration using your favorite editor.
/etc/sysconfig/iptablesAdd 3 rule input to allow traffic for http, https and mysql.
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
Don't forget to restart iptables
#service iptables restartYou could check your current iptables configuration with:
#iptables -L