设置 cakephp 时出现权限问题

设置 cakephp 时出现权限问题

我对 Linux 很陌生,正在尝试在 opensuse 12.1 上设置 cakephp。我按照 cakephp 网站(博客教程)上的说明进行操作,很可能遇到一些权限问题。我将 cakephp 文件夹放在 /srv/www/htdocs 中,然后尝试使用 localhost/cakephp 访问它,其中显示

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403

但是当我检查权限时我得到了

Suse:/srv # ls -lR shows sankalp as owner for all the files down the tree.

sankalp@Suse:/srv/www/htdocs> whoami
sankalp
sankalp@Suse:/srv/www/htdocs> ls -l
total 108
drwxrwxrwx  6 sankalp users  4096 Jun 27 12:44 cakephp
-rw-r--r--  1 sankalp users 73728 Jul  6 10:41 das
-rwxrwxrwx  1 sankalp  root    302 Mar 13  2006 favicon.ico
-rwxrwxrwx  1 sankalp  root     26 Jun 28 19:04 whoami.php

当 favicon.ico 显示在浏览器中时,我也无法访问 whoami.php。当我向用户提供 777 时,我在这里做错了什么。

相关内容