login community faq
0
1

I'd like to install and run Pinax on my WebFaction account - what steps should I take?

This question is marked "community wiki".

asked May 05 '12 at 17:32

seanf's gravatar image

seanf ♦♦
59491220

wikified May 05 '12 at 17:39


You can use the following steps to install Pinax on your WebFaction account. The latest version of Pinax at the time of this writing is 0.9a2:

  1. Create a "mod_wsgi 3.3/Python 2.7" app in the control panel. In this example, app is named "pinax_server".
  2. SSH into your server and run the following commands:
    cd ~/webapps/pinax_server
    mkdir -p lib/python2.7
    export PYTHONPATH=$PWD/lib/python2.7
    easy_install-2.7 -s $PWD/bin -d $PWD/lib/python2.7 virtualenv
    ./bin/virtualenv mysite-env
    source mysite-env/bin/activate
    pip install Pinax
    pinax-admin setup_project mysite
    cd mysite
    mkdir -p site_media/{media,static}
    # edit settings.py to set your database config.
    # if using sqlite, then use the full path to the db.
    python manage.py syncdb
    python manage.py collectstatic
  3. Edit ~/webapps/pinax_server/apache2/bin/start to add a line that activates your virtualenv when apache is started, eg:
    #!/bin/bash
    
    source /home/username/webapps/pinax_server/mysite-env/bin/activate
    
    LD_LIBRARY_PATH=/home/username/webapps/pinax_server/apache2/lib /home/username/webapps/pinax_server/apache2/bin/httpd.worker -f /home/username/webapps/pinax_server/apache2/conf/httpd.conf -k start
  4. Add the following line to the end of your ~/webapps/pinax_server/apache2/conf/httpd.conf
    WSGIScriptAlias / /home/username/webapps/pinax_server/mysite/wsgi.py
  5. Restart your Apache.
  6. In the control panel, create a new "Symbolic link to static-only app" application using "/home/username/webapps/pinax_server/mysite/site_media" in the "extra info" field.
  7. In the control panel, configure your site to serve the "pinax_server" app on the root URL path "/", and the symlink app on URL path "/site_media".
  8. Wait a few minutes for the control panel changes to take effect, and you're done.
This answer is marked "community wiki".

answered May 05 '12 at 17:34

seanf's gravatar image

seanf ♦♦
59491220

wikified May 05 '12 at 17:40

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×13
×5

Asked: May 05 '12 at 17:32

Seen: 540 times

Last updated: May 05 '12 at 17:40

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited