Audrey M. Roy

Art, design, Python, JavaScript, and general silliness 
Filed under

apache

 

Pinax setup on WebFaction Part 2

I scrapped everything I did in part 1 and followed this pretty much
exactly: http://code.pinaxproject.com/wiki/DetailedPinaxWebfaction/

 (note: I spent several hours trying to get my setup to work before I
deleted everything and started from scratch following the
DetailedPinaxWebfaction procedure. I recommend that you do the same
if you're struggling. However, this may be outdated shortly as the
Pinax folks are hard at work on the new release.)

 What I did differently from DetailedPinaxWebfaction:
- Used Pinax-0.7beta3, not beta2
- Used Django-1.0.3, not 1.0.2
- mysql insted of postgresql in myproject/local_settings.py
- Made slight variations to my ~/webapps/pinax07server/apache2/conf/httpd.conf:

 ServerRoot "/home/insert_user_account_here/webapps/pinax07server/apache2"

 LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule wsgi_module modules/mod_wsgi.so

 KeepAlive Off
Listen 37968
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
CustomLog logs/access_log combined
ServerLimit 2

 WSGIPythonPath /home/insert_user_account_here/webapps/pinax07server/pinax-env/lib/python2.5/site-packages/
WSGIScriptAlias /
/home/insert_user_account_here/webapps/pinax07server/myproject/deploy/pinax.wsgi

 LoadModule alias_module modules/mod_alias.so
WSGIDaemonProcess pinaxWSGI user=insert_user_account_here
group=insert_user_account_here threads=25
python-path=/home/insert_user_account_here/webapps/pinax07server/pinax-env/lib/python2.5/site-packages
WSGIProcessGroup pinaxWSGI

 NameVirtualHost 127.0.0.1:insert_your_port_here

  ServerName insert_your_domain_here.com
  WSGIScriptAlias /
/home/insert_user_account_here/webapps/pinax07server/myproject/deploy/pinax.wsgi
  ErrorLog "logs/myproject_2009_05_06.log"

       SetHandler none

     Alias /site_media /home/insert_user_account_here/webapps/static

Filed under  //   Apache   Django   Pinax   Webfaction  
Posted by email 

Comments [1]