我试图将 WSGIDaemonProcess 用户设置为 root。然后我收到如下错误日志
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105] [Errno 13] Permission denied: '/var/www'
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105]
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105] The Python egg cache directory is currently set to:
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105]
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105] /var/www/.python-eggs
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105]
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105] Perhaps your account does not have write access to this directory? You can
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105] change the cache directory by setting the PYTHON_EGG_CACHE environment
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105] variable to point to an accessible directory.
[Fri May 02 04:48:47 2014] [error] [client 103.6.158.105]
我的 Django 应用程序位于 /home/user/app/
任何人都可以帮助以 root 身份运行 WSGI 守护进程。谢谢。