I'm running two local domains under one apache installation my virualhost is as following.
<VirtualHost *:80>
WSGIDaemonProcess staging python-path=/var/www/staging/src/ipinfra/ipinfra:/var/www/staging/lib/python3.4/site-packages
WSGIProcessGroup staging
...
</VirtualHost>
<VirtualHost *:80>
WSGIDaemonProcess ipinfra python-path=/var/www/dev/src/ipinfra/ipinfra:/var/www/dev/lib/python3.4/site-packages
WSGIProcessGroup ipinfra
...
</VirtualHost>
Everything works fine just for the staging environment not able to to write log to the logs folder.
Both the application have same permission and same code but staging is unable to write code.
Django app is running under user ipinfra and its a member of group apache
logs folder has a permission of 766 and log file has 777 permission on both setup.