CentOS Installation

http://www.tecmint.com/install-apache-mysql-php-on-redhat-centos-fedora/

I have followed the steps above to install for a Cent OS 6.4
All seems to be working except that my test page is not loading. Is there a firewall issue?
Starquest321Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sivagnanam chandrakanthTechnical LeadCommented:
Have you added virtual host in apache for your application/folder..
0
Starquest321Author Commented:
how do I do that? A little new at it
0
sivagnanam chandrakanthTechnical LeadCommented:
go to /etc/httpd/conf/httpd.conf  and add below lines

<VirtualHost *:80>
    ServerAdmin ***@***.com
    DocumentRoot /var/www/html  /*your folder directory*/
    ServerName localhost /*or any url like demoapp.com*/
    ErrorLog /var/log/httpd/test.error_log
<Directory "/var/www/html/"> /*your folder directory*/
       AllowOverRide All
       Options +Indexes
       Order allow,deny
       Allow from all
</Directory>
</VirtualHost>


Remove my comments with /*........*/
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

Starquest321Author Commented:
I have updated the file as per your suggestion - but still no change. .
image.png
0
Gerwin Jansen, EE MVETopic Advisor Commented:
What error do you get and from where are you trying to load the test page? From the CentOS server or from an other location?
0
SandyCommented:
#sestatus
enforcing

#ls -lZ /var/www/html

then

#cd /var/www/html
#restorecon -R index.html <whatever is the document you used as index page>

Its SE-Linux mode which is not executing the file with different context

#ls -lZ /var/www/html
0
sivagnanam chandrakanthTechnical LeadCommented:
Make sure you did the following

1) Restart Apache after making the changes (/etc/init.d/httpd restart)
2) make sure the file you are hitting is placed under /var/www/html
3) if you are hitting the server from other machine...put a host entry with ip and domain name

Example:

For Linux : edit /etc/hosts file and add below line

192.**.**.**(Your ip) test.nadian-investments.com

For windows edit C://windows/system32/drivers/etc/hosts file and add

192.**.**.**(Your ip) test.nadian-investments.com

This is added if your domain is invalid..

Also check /var/log/httpd/test.error_log for more details
0
Seth SimmonsSr. Systems AdministratorCommented:
is selinux enabled (what happens when you do getenforce ?)

i typically disable selinux (change from enforced to disabled in /etc/selinux/config) for permanent change (requires reboot) or setenforce 0 for current session; i've had this problem before

if you need to keep selinux then modify it to allow apache

http://www.cyberciti.biz/faq/howto-disable-httpd-selinux-security-protection/

virtual hosts are if you are hosting multiple websites

http://httpd.apache.org/docs/2.2/vhosts/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.