Hi, I'm studying pinax and trying to create a 'best practice' to setup pinax on ubuntu 8.10 with Apache/mod_wsgi and MySQL. When I'm done I'll submit it to the pinax team and hopefully they'll add it to the docs. I'm not looking for custom high performance settings just for settings that will help me and others start.
Apache and mod_wsgi dependencies were installed using: $ sudo apt-get install apache2 libapache2-mod-python mysql-server python-mysqldb I've been told that I should start with Apache prefork and use mod_wsgi daemon. Should I remove the worker MPM that is installed by default and replace it with the prefork version? $ sudo apt-get autoremove --purge apache2-mpm-worker $ sudo apt-get install apache2-mpm-prefork Currently I have pinax trunk installed inside a virtualenv under /home/ user/pinax-env/... Pinax has several pre built projects and I'm using basic_project as an example /home/user/pinax-env/src/pinax/projects/basic_project Do I need to deal with folders permissions like is usually done when serving static html in a vhost using Apache? The slicehost tutorial explain how to add the 'webadmin' user that owns the public_html and the domain1 vhost to the Apache user group and how to set the permissions: http://articles.slicehost.com/2007/9/18/apache-virtual-hosts-permissions What should the vhost settings inside site-available be? I'm starting with: <VirtualHost *:80> ServerAdmin [email protected] ServerName domain1.com ServerAlias www.domain1.com WSGIDaemonProcess pinax threads=1 processes=25 python-path=/home/user/ pinax-env/lib/python2.5/site- packages WSGIProcessGroup pinax WSGIScriptAlias / /home/user/pinax-env/src/pinax/projects/ basic_project/deploy/basic_project.wsgi <Directory /home/user/pinax-env/src/pinax/projects/basic_project> Order allow,deny Allow from all </Directory> ErrorLog /home/user/pinax-env/error.log </VirtualHost> Should I set a user and a group for the WSGIDaemonProcess? What else need to be set? django admin? static media? I'll appreciate any help and supply info/tests as needed. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
