2012-07-06 55 views
0

我对linux很新颖,并试图在opensuse 12.1上设置cakephp。我在cakephp网站(博客教程)上讲过,并且很可能遇到了一些权限问题。我在/ SRV /网络/ htdocs目录耳光CakePHP的文件夹,然后尝试使用本地主机/ CakePHP的地方说,在opensuse上设置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. 

[email protected]:/srv/www/htdocs> whoami 
sankalp 
[email protected]:/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 

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

回答

0

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

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

希望它能为你工作。请询问它是否不适合你。

+0

我也尝试了您的建议,但这不会有任何用处,因为我之前提到我甚至无法在浏览器中使用localhost/cakephp访问/ srv/www/htdocs/cakephp.Someone告诉我检查我是谁运行我的服务器(Apache),但我不确定。 – Sankalp 2012-07-06 08:30:13