Linux php代码点火器权限403错误


Linux php codeigniter permissions 403 error

我正在尝试让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.

你能帮我吗?

在文件夹所在的目录上使用以下命令,然后(在阅读了有关web服务器的文件权限后),继续逐步限制权限,直到确认一切正常为止。DoNOT将您的权限保留为777。

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

如果在该命令之后它不起作用,那么就出现了其他问题。