If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

Originally taken from:

 https://groups.google.com/forum/#!searchin/web2py/hostgator/web2py/HvKqgkatK1E/0mFjGUYPjLYJ

 

 

 

Install web2py at /home/user/web2py
Create a virtualenv of Python 2.7 at /home/user/python (The server's python binary is at /usr/bin/python2.7)
Create an .htaccess and index.fcgi file using instructions found elsewhere.
 
index.fcgi
#!/home/user/python/bin/python
import sys, os
sys.path.append('/home/user/web2py')
os.chdir('/home/user/web2py')
from flup.server.fcgi_fork import WSGIServer
import gluon.main
application=gluon.main.wsgibase
# or
# application=gluon.main.wsgibase_with_logging
WSGIServer(application).run()
 
.htaccess
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteBase /
RewriteRule ^index\.fcgi/ - [L]
RewriteRule ^(.*)$ index.fcgi/$1 [L]

 

Related slices

Comments (2)


Hosting graciously provided by:
Python Anywhere