http://groups.google.com/group/web2py/browse_thread/thread/10f93e6c50c11929/c2b3f1d93a5ae37e?lnk=gst&q=cpanel#c2b3f1d93a5ae37e
I'm trying to follow these directions.
I unzipped web2py_src.zip into /home/[username]/codebase/web2py/
I have .htaccess in /home/[username]/public_html/ that says:
Options +ExecCGI
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteBase /home/[username]/codebase/web2py/
RewriteRule ^dispatch\.fcgi/ - [L]
RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]
I'm not sure what should be in dispatch.fcgi; should it be as folows:
#!/usr/bin/env python2.5
import os
import sys
WEB2PY_PATH = os.path.normpath('/path to web2py/')
os.chdir(WEB2PY_PATH)
if not WEB2PY_PATH in sys.path:
sys.path.append(WEB2PY_PATH)
from gluon.main import wsgibase
import gluon.contrib.gateways.fcgi
from gluon.contrib.gateways.fcgi import WSGIServer
if __name__ == '__main__':
WSGIServer(wsgibase).run()