Friday, February 17, 2012

How to install Apache with perl modules on CENTOS

1/ Install Apache
yum install httpd

2/ Configure Apache on startup
chkconfig httpd on

3/ Allow port 80 and 443 in IPTABLES firewall
edit conf file /etc/sysconfig/iptables and add folowing lines before last 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

4/ Install PERL modules


rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

yum list *NCFTP*

yum install ncftp

perl -MCPAN -e shell
cpan> install XML::Simple