Thursday, January 30, 2014

Apache install and initial configure in CentOS 6.5

Follow below steps to install Apache and bring web server up in CentOS 6.5

# yum install httpd

Edit below file,

# vi /etc/httpd/conf/httpd.conf

and change below values,

ServerTokens Prod
ServerSignature Off

:wq (save and exit)

If you are not able to load default page, check whether index.html is available in document root or create one.

If you have index.html in document root then allow in iptables setting (find steps here)

That should do the trick!!!

Apache server shows Connection time out in browser after installation in CentOS

After installing httpd in CentOS, webpage will not load by default

This is because of the iptables

run below command to solve the issue

# /sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

# service iptables restart
 
That should do the trick!!!