Permission to write to a file in a disabled mod_wsgi application

I am trying to deploy a Pyramid application using mod_wsgi on Apache.

I get IOError: [Errno 13] Permission denied in the templates folder, where mako caches its templates , even if I grant write permission to someone .

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

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

Any clue?

+6
source share
1 answer

This is an apache permission issue,

I had to change the owner of the folder to the www-data user and set the 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

+7
source

Source: https://habr.com/ru/post/898577/


All Articles