0

我正在尝试让 php5 和 codeigniter 在 Arch linux 上工作。现在所有的目录权限都搞砸了。当我得到权限列表时

    ls -l

drwxrwxrwx 16 ytsejam users 4096 Jul 26 23:45 public_html

我的 test.php 正在工作,但现在我不断得到:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server. Error 403.

你能帮助我吗 ?

4

1 回答 1

2

在文件夹所在的目录上使用以下命令,然后(在阅读有关 Web 服务器的文件权限之后)继续逐渐限制权限,直到您可以确认一切正常。不要您的权限保留为 777。

chmod -R 777 /path/to/your/public_html

如果在该命令之后它不起作用,那么还有更多问题。

于 2012-07-26T23:21:58.270 回答