PHP files can not open in apache with selinux

Some php files can not be opened in apache.
Check Selinux settings in /etc/sysconfig/selinux

run
#restorecon -R -v /var/www/html/

Now php works

That allows Apache to execute PHP scripts in that directory, and persists after a reboot.

发表评论

电子邮件地址不会被公开。 必填项已用*标注