How to install Apache2 (CentOS 5.4)

BiLOT » 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:

1 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
2 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

你可能感兴趣的:(Install)