I have installed PHP, MySQL, Apache on CentOS 6, now I have restarted the Apache and mysql, to test PHP i have created a
/var/www/html/test/ now once i go to
localhost/test/index.php then it shows only PHP soruce code like this:
From Gnouc comment, i understand that it is due to SELinux security layer.
To work with HTML directory i did this in my terminal, but still i have the same result:
[root@localhost www]# chcon -v --type=httpd_sys_content_t html changing security context of `html`
Any idea? Thanks