我在error.log中得到如下:Django的目錄權限配置問題
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1] [Errno 13] Permission denied: '/Dropbox/project/www/mod_wsgi/egg-cache'
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1]
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1] The Python egg cache directory is currently set to:
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1]
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1] /Dropbox/project/www/mod_wsgi/egg-cache
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1]
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1] Perhaps your account does not have write access to this directory? You can
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1] change the cache directory by setting the PYTHON_EGG_CACHE environment
[Tue May 03 16:42:21 2011] [error] [client 127.0.0.1] variable to point to an accessible directory.
什麼,我應該如何設置?
UPDATE:
目前的權限:
drwxr-xr-x 4 petarpetrov admin 136 Apr 30 13:38 mod_wsgi
而且,無論用戶的Apache集團都似乎是_www
出於某種原因
該目錄的權限是什麼? – 2011-05-03 21:46:20
而網絡服務器(Apache,Nginx等)以哪個用戶身份運行? – 2011-05-03 21:52:14
我該如何檢查? – mgPePe 2011-05-03 21:52:56