我正在尝试在Mac OSX上的 apache 中部署 django 项目。
中的所有步骤操作在日志中收到此错误:
(13)Permission denied: [client ::1:63146] AH00035: access to / denied (filesystem path '/Users/nitinsolanki/Documents/virtual_environment') because search permissions are missing on a component of the path
在 /etc/apache2/extra/httpd-vhosts.conf
中设置include /private/etc/apache2/extra/vhosts/localhost.conf
在 / etc / apache2 / extra / vhosts /
中创建一个文件 - localhost.conf<VirtualHost *:80>
ServerName localhost
# Static files
DocumentRoot "/Users/nitinsolanki/Documents/virtual_environment/test/"
ErrorLog "/Users/nitinsolanki/Documents/virtual_environment/test/error.log"
CustomLog "/Users/nitinsolanki/Documents/virtual_environment/test/access.log" common
Alias /static/ /Users/nitinsolanki/Documents/virtual_environment/test/static
<Directory /Users/nitinsolanki/Documents/virtual_environment/test/static>
Order deny,allow
Allow from all
</Directory>
<Directory /Users/nitinsolanki/Documents/virtual_environment/test/myproject>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
WSGIDaemonProcess test python-path=/Users/nitinsolanki/Documents/virtual_environment/test:/Users/nitinsolanki/Documents/virtual_environment/test/virtual_test/lib/python2.7/site-packages
WSGIProcessGroup test
WSGIScriptAlias / /Users/nitinsolanki/Documents/virtual_environment/test/myproject/wsgi.py
</VirtualHost>
如何克服权限的问题?即使我将权限设置为 django-project(测试)