####install pip and virtualenv
$ sudo aptitude install python-setuptools python-pip
$ sudo pip install virtualenv
#easy_install
#easy_install pip
#pip install everything
#sudo pip install web.py
####compile uwsgi
$ sudo aptitude install python26-dev gcc
$ wget http://projects.unbit.it/downloads/uwsgi-1.1.2.tar.gz
$ tar zxvf uwsgi-1.1.2.tar.gz
$ python uwsgiconfig.py --build
####virtualenv and uwsgi stuff
$ cd webpy_project_dir
$ virtualenv --no-site-packages env
$ virtualenv --relocatable env
$ . env/bin/activate
$ mkdir env/src
$ wget http://webpy.org/static/web.py-0.36.tar.gz
$ tar zxvf web.py-0.36.tar.gz
$ python setup.py install
$ pip install web.py
$ deactivate
$ vim webpy_uwsgi.xml
$ ~/uwsgi-1.1.2/uwsgi --uid user -x ~/webpy_uwsgi.xml --vhost
####nginx config
$ sudo aptitude install nginx
$/etc/init.d/nginx start
####supervisor config
$ sudo pip install supervisor
# cp /usr/local/lib/python2.7/dist-packages/supervisor/skel/sample.conf /etc/supervisord.conf #copy sample config
# supervisord
# vim /etc/supervisord.conf
# supervisorctl update #after /etc/supervisord.conf
# supervisorctl start app1
# supervisorctl stop app1
###add supervisor to /etc/init.d/
# cp supervisord.sh /etc/init.d/supervisor
# chmod +x /etc/init.d/supervisor
# /usr/sbin/update-rc.d -f supervisor defaults