However, it was not enough for my case, and my problem was SElinux! once I disabled it, everything worked like a charm. To control (disable) SElinux follow instructions at this link. Basically, to disable SElinux temporarily, run:
echo 0 > /selinux/enforce
Thanks for the people who documented their troubleshooting and helped solving the problem.
To set your web server for easy file access:
- comment out all lines in /etc/httpd/conf.d/welcome.conf - edit /etc/init.d/httpd.conf - echo 0 > /selinux/enforce - Modify the line "DocumentRoot /var/www/html" to point to your path
- Modify the line "Directory /var/www/html" to point to your path - chkconfig httpd on - service httpd restart - Got to any host any browse http://server-ip