开发者

File writing permission denied in mod_wsgi deployed app

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

I get IOError: [Errno 13] Permission de开发者_如何学Cnied 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜