Home > CentOS > How to install Apache2 (CentOS 5.4)

How to install Apache2 (CentOS 5.4)

# yum install httpd httpd-devel
# chkconfig --levels 235 httpd on
# /etc/init.d/httpd start

Change IPTables

# vi /etc/sysconfig/iptables

Includes the following before the REJECT line:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
# service iptables restart

Check disable SElinux !!!
How to disable SElinux

Categories: CentOS Tags:
  1. No comments yet.
  1. No trackbacks yet.