This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 5th, 2011  |  syntax: Bash  |  size: 0.43 KB  |  views: 286  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.  
clone this paste RAW Paste Data