To resolve the symbol link not allow problem, I change the httpd configuration from:
Options FollowSymLinks
Options Indexes FollowSymLinks
to
Options +FollowSymLinks
Options Indexes +FollowSymLinks
in the DocumentRoot directory definition part.
But it dosn't work. So I did more google. And in one forum somebody said this is because the SeLinux problem, I need to disable SELinux to resolve this problem.
To disable SELinux, we can temporarily disable or permanently disable it:
a. temp
To switch back into enforcing mode:
You'll need to be logged in as root, and in the sysadm_r role:
newrole -r sysadm_r
and then
echo 0 >/selinux/enforce
echo 1 >/selinux/enforce
b. permanently
edit /etc/selinux/config and change SELINUX=enforcing to SELINUX=permissive
For more detail, please check this artical :
How to disable SELinux
Thanks
No comments:
Post a Comment