Can not execute from /var/www/html

centos-novice

New member
Joined
May 14, 2018
Messages
1
When I put just file info.php or something into /var/www/html I can execute it from http://192.168.1.10/info.php and get informations about php, but when I create similink ( ln -s /home/someuser/www/test/ /var/www/html/test ) to directory in my home directory /home/someuser/www/test/info.php and try http://192.168.1.10/test/info.php Apache says "Forbidden ...". This works on Debian. So, how I can put my site directory into /var/www/html and execute it? I looking for answer and try change permissions but still does not work.:confused:
 
Hello,

That's a security issue, it's not allowed in Apache and is controlled by SymLinksIfOwnerMatch. I would not suggest disabling it.

Do you need to access your content without domain name? In this case you'd better change Document Root in Apache.
 
Back
Top