python flask IOError:[Errno 13]权限被拒绝

时间:2016-01-09 04:23:59

标签: flask setup-deployment

我正在尝试部署我的烧瓶项目。我在访问网站时遇到错误,内部服务器错误。我检查了error_log,其中说

**"IOError: [Errno 13] Permission denied: '/home/apps/microblog/tmp/microblog.log'
[Fri Jan 08 13:06:41 2016] [warn] [client 115.59.229.183] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server"**

我在tmp文件上有chmod 777,但它没有帮助。 顺便说一下,我有配置conf / httpd.conf

FcgidIPCDir /tmp
AddHandler fcgid-script .fcgi
<VirtualHost *:80>
    DocumentRoot /home/apps/microblog/app/static
    Alias /static /home/apps/microblog/app/static
ScriptAlias / /home/apps/microblog/runp-mysql.fcgi/

0 个答案:

没有答案