View difference between Paste ID: zcA5A89k and
SHOW: | | - or go back to the newest paste.
1
cd ~
2
wget -O web2py_srz.zip http://web2py.com/examples/static/web2py_src.zip 
3
unzip web2py_src.zip
4
echo "
5
PATH = '/home/"`whoami`"/web2py' 
6
import os
7
import sys
8
sys.stdout = sys.stderr 
9
os.chdir(PATH)
10
if not './' in sys.path[:1]: sys.path.insert(0,'./') 
11
from gluon.main import wsgibase as application
12
" > /var/www/wsgi.py
13
cd web2py 
14
python -c "from gluon.main import save_password; save_password(raw_input('admin password: '),433)"
15