Hi,
I'm trying to understand best practices for setting up pinax trunk in a virtualenv using the boot script
with Apache mod_wsgi and MySQL.
When using Apache for serving static HTML I'm following the slicehost tutorial
http://articles.slicehost.com/2007/9/18/apache-virtual-hosts-permissionsand creating a public_html in the home folder of a 'webadmin' user that has root privileges.
Inside the public_html I'm creating a folder for each subdomain.
In order to let Apache read access slicehost suggest to:
- add the 'webadmin' user to the Apache user groupd: $ sudo usermod -a -G www-data demo
- ensure the public_html folder is owned by the main user (demo) and is part of the Apache group (www-data): $ sudo chgrp -R www-data /home/demo/public_html
- ensure that any new files are given the user 'demo' and the group 'www-data': $ sudo chmod -R 2750 /home/demo/public_html
I'm trying to understand the equivalent when setting up pinax trunk with mod_wsgi.
Do I need to worry about Apache permissions the same way as when setting a standard vhost with static html?
Are all the permissions handled inside the vhost file in the site-available folder where I configure mod_wsgi?
Can you please list what permissions needs to be granted to mod_wsgi and how?
django admin interface
pinax project media folder
pinax project root?
pinax root?
Thanks