File writing permission denied in mod_wsgi deployed app

吃可爱长大的小学妹 提交于 2019-12-06 00:59:01

问题


I'm trying to deploy a Pyramid app using mod_wsgi on Apache.

I get IOError: [Errno 13] Permission denied on templates folder, where mako caches his templates, even if I grant write permissions to anybody.

If I remove template caching from my ini file the site runs flawlessly.

I also tried running Apache as the user owning the folder instead of www-data with no luck.

Any clue?


回答1:


It's an Apache permission issue,

I had to change owner of folder to www-data user and set permissions to 775

chown -R www-data:www-data ~/data
chmod -R 775 ~/data

Also see here but note for Mako 664 permissions will not be enough



来源:https://stackoverflow.com/questions/7645974/file-writing-permission-denied-in-mod-wsgi-deployed-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!