Я пытаюсь настроить Apache с mod_wsgi для запуска Django в Red Hat Box, но я получаю страшное «Отказано в доступе:« /home/pineg/.python-eggs »« ошибка извлечения яичного кэша.
Я сделал то, что он сказал, и сделал это первой строкой:
SetEnv PYTHON_EGG_CACHE /opt/tmp
в / etc / httpd / conf / httpd.conf
Иперезапустил Apache:
>sudo /etc/init.d/httpd restart
Но я все еще получаю ту же ошибку (ниже).Как будто Apache игнорирует мой SetEnv.
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] The following error occurred while trying to extract file(s) to the Python egg
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] cache:
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561]
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] [Errno 13] Permission denied: '/home/pineg/.python-eggs'
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561]
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] The Python egg cache directory is currently set to:
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561]
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] /home/pineg/.python-eggs
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561]
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] Perhaps your account does not have write access to this directory? You can
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] change the cache directory by setting the PYTHON_EGG_CACHE environment
[Fri May 06 10:08:37 2011] [error] [client 10.101.11.561] variable to point to an accessible directory.