Mod_wsgi prevents log files from being created inside the project folder

I get the following error when deploying an application using mod_wsgi

[Thu Apr 07 11:23:32 2011] [error] [client localhost] IOError: [Errno 13] Permission denied: '/var/www/vhosts/myproject/myproject.log' 
+4
source share
2 answers

It’s a bad idea to put the log folder in the project folder. A process that uses apache should never have write permissions to the project folder. Put it in the /tmp/ folder or the like.

+7
source

Reading:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Access_Rights_Of_Apache_User

for information about the access rights of the user for whom the application will work when using Apache / mod_wsgi.

+3
source

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


All Articles