我对 linux 很陌生,并试图在 opensuse 12.1 上设置 cakephp。我按照 cakephp 网站(博客教程)上的说明做了,很可能遇到了一些权限问题。我在 /srv/www/htdocs 中拍了 cakephp 文件夹,然后尝试使用它所说的 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 时,我在这里做错了什么。