Hi Brian, I tried a similar setup but I wasn't able to run it... Were you able to run web2py in hostgator? When I try to run it from ssh I get: lance...@lancesegols.com [~/public_html/lancesegols.com]# python web2py.py web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.99.7 (2012-03-04 22:12:08) stable Database drivers available: SQLite3, pymysql, pg8000, IMAP Starting hardcron... choose a password: no password, no admin interface please visit: http://127.0.0.1:8000 use "kill -SIGTERM 31355" to shutdown the web2py server Fatal Python error: Couldn't create autoTLSkey mapping Aborted (core dumped)
Not sure what is wrong... I have put web2py source inside public_html is it the right path? My dispatch.fcgi #!/home/lanceseg/local/bin/python import sys from flup.server.fcgi_fork import WSGIServer import gluon.main application=gluon.main.wsgibase ## or # application=gluon.main.wsgibase_with_logging WSGIServer(application).run() My .htaccess: AddHandler fcgid-script .fcgi Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteBase / RewriteRule ^dispatch\.fcgi/ - [L] RewriteRule ^(.*)$ dispatch.fcgi/$1 [L] Not usre what is wrong but there is not a good tutorial for hostgator. Regards, Tito On Wed, May 18, 2011 at 9:48 PM, Brian M <bmere...@gmail.com> wrote: > Yep it'll work similar on hostgator - tried it out a few months back just > to see if I could get it working, haven't actually deployed anything useful > but it appears to run ok. I recall that an appropriate version of Python & > flup were already installed on my hostgator shared box. I did my install of > web2py into a subfolder rather than the site root which probably made > things harder. Here's that I can quickly grab from my setup, sorry didn't > take detailed notes :( > > > .htaccess > -------------- > AddHandler fcgid-script .fcgi > Options +FollowSymLinks +ExecCGI > RewriteEngine On > RewriteBase /web2py/ > RewriteRule ^dispatch\.fcgi/ - [L] > RewriteRule ^(.*)$ dispatch.fcgi/$1 [L] > > > dispatch.fcgi > ------------------- > #!/usr/bin/python2.7 > import sys > from flup.server.fcgi_fork import WSGIServer > import gluon.main > application=gluon.main.wsgibase > ## or > # application=gluon.main.wsgibase_with_logging > WSGIServer(application).run() > > routes.py (sorry honestly don't remember if I changed this or not, think I > had to add the /web2py/ because I put web2py in a subfolder of the site) > ------------------------ > #routes_in = ((r'.*:/favicon.ico', r'/examples/static/favicon.ico'), > # (r'.*:/robots.txt', r'/examples/static/robots.txt'), > # ((r'.*http://otherdomain.com.* (?P<any>.*)', > r'/app/ctr\g<any>'))) > routes_in = (('/web2py/(?P<a>.*)','/\g<a>'),) > > # routes_out, like routes_in translates URL paths created with the web2py > URL() > # function in the same manner that route_in translates inbound URL paths. > # > > #routes_out = ((r'.*http://otherdomain.com.* /app/ctr(?P<any>.*)', > r'\g<any>'), > # (r'/app(?P<any>.*)', r'\g<any>')) > routes_out=(('/(?P<a>.*)','/web2py/\g<a>'),) > -- Linux User #387870 .........____ .... _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:_______ --