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()


On Oct 6, 3:41 pm, whiskeyjuvenile <whiskeyjuven...@gmail.com> wrote:
> I'm trying to get web2py to work with cpanel shared hosting. I have
> shell access.
>
> Is there some walkthrough guide on how to get it working without using
> apache as a proxy/not using the web2py-cherrypy server?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to