1

I have a web server where i host script1 in /home/srcipt1/ and script2 is in /home/script2

When i try to include a file from script2 folder into script1 i get permission errors

Warning: require_once(/home/script1/public_html/SSI.php): failed to open stream: Permission denied in /home/script2/public_html/q3/config/config.php on line 32

EDIT:

SSI.php has 755 permissions and /home/script2/public_html has 750 permissions

4

1 回答 1

1

您可能没有该文件的组权限。你可以在你的 SSH shell 中试试这个:

chmod /home/script1/public_html/SSI.php 774

确保您使用的是正确的 ACL,774 是组/用户可写、可读和可执行且仅在世界范围内可读的。

于 2013-08-16T16:08:13.650 回答