在opensuse上设置cakephp

时间:2012-07-06 06:13:14

标签: cakephp permissions opensuse

我对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时,我在这里做错了什么。

1 个答案:

答案 0 :(得分:0)

您应该将权限777分配给/ app / tmp目录。

chmod -R 777 /srv/www/htdocs/yourApp/app/tmp

希望它对你有用。请询问它是否不适合您。