PHP on centos 6 not working
If your SELinux
config is ok, it seems that this error occured because server configuration.
If you have installed php
, then make sure that it is loaded by apache
and apache
is associated with php
handler.
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
And you should check your .htaccess
. It may have some configurations that overrided apache's config.
yum install mod_php -y
systemctl restart httpd.service