Comments on Installing Apache2 With PHP5 And MySQL Support On CentOS 6.3 (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 6.3 server with PHP5 support (mod_php) and MySQL support.
3 Comment(s)
Comments
Apache wouldn't work off the bat if you're trying to see it from another computer...you have to add a firewall exception:
...first turn it off:
# service iptables stop
...then edit the rules file (use your favorite text editor, I use nano)
# nano /etc/sysconfig/iptables
...need to add rule:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
...then start firewall again
#service iptables start
...if you want to remotely access MySQL as well (I do) you also add:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
Absolutely... Good job
Where do we put that rule, under the INPUT ACCEPT?