Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mod_wsgi denies permission to write log files inside project folder

I am getting the following error while deploying the 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'
like image 606
Billy Samuel Avatar asked Dec 27 '22 22:12

Billy Samuel


1 Answers

It is a bad idea to put the log folder within the project folder. The process that apache uses should never have write permissions to your project folder. Put it in a /tmp/ folder or the like.

like image 108
lprsd Avatar answered Jan 18 '23 05:01

lprsd