django部署到apache为什么all.log这个文件一直报错?
澳门新葡京官网
澳门新葡京官网
当前位置 : 澳门新葡京官网 > 澳门新葡京官网

django部署到apache为什么all.log这个文件一直报错?

错误提示如下:

[Thu Aug 04 11:05:11.875560 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]     application = get_wsgi_application
[Thu Aug 04 11:05:11.875573 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]   File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Thu Aug 04 11:05:11.875610 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]     django.setup
@
"/var/log/apache2/error.log" 18L, 3000C                       1,1           Top
[Thu Aug 04 11:05:11.875624 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 17, in setup
[Thu Aug 04 11:05:11.875659 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]     configure_loggingsettings.LOGGING_CONFIG, settings.LOGGING
[Thu Aug 04 11:05:11.875670 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]   File "/usr/local/lib/python2.7/dist-packages/django/utils/log.py", line 86, in configure_logging
[Thu Aug 04 11:05:11.875727 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]     logging_config_funclogging_settings
[Thu Aug 04 11:05:11.875739 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]   File "/usr/lib/python2.7/logging/config.py", line 794, in dictConfig
[Thu Aug 04 11:05:11.875916 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]     dictConfigClassconfig.configure
[Thu Aug 04 11:05:11.875929 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]   File "/usr/lib/python2.7/logging/config.py", line 576, in configure
[Thu Aug 04 11:05:11.875946 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195]     %r: %s % name, e
[Thu Aug 04 11:05:11.875963 2016] [:error] [pid 9903:tid 140029701797632] [client 110.81.107.59:7195] ValueError: Unable to configure handler file: [Errno 13] Permission denied: /all.log

很奇怪

我的目录权限是这样的

这个all.log权限都到了最高了,为什么还会这样!!??提示没有权限?

Permission denied: /all.log

根据这个,我猜测你代码里文件路径写的有问题, / 根目录???
你可以参考下.

栏目列表

广告位

澳门新葡京官网