Install web2py on hostgator hatchling package

18 views
Skip to first unread message

Mạnh Trần Đức

unread,
Mar 10, 2014, 4:48:42 AM3/10/14
to web...@googlegroups.com

I 've bought Hatchling package hosting on hostgator.
I tried install web2py on subfolder public_html/web2py but it was not successful.
Server response 500 default status of hostgator: http://moneytweak.com/web2py/

This is my .htaccess and index.fcgi in web2py folder:
###.htaccess:
AddHandler fcgid-script .fcgi 
Options +FollowSymLinks  +ExecCGI 
RewriteEngine On 
RewriteBase /web2py/ 
RewriteRule ^index\.fcgi/ - [L] 
RewriteRule ^(.*)$ index.fcgi/$1 [L]

###index.fcgi:
#!/home/user/env/bin/python
import sys, os
sys.path.append('/home/user/public_html/web2py')
os.chdir('/home/user/public_html/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()

###routes.py
default_application = 'init'    # ordinarily set in base routes.py
default_controller = 'default'  # ordinarily set in app-specific routes.py
default_function = 'index'      # ordinarily set in app-specific routes.py
routes_in = (('/web2py/(?P<a>.*)','/\g<a>'),)
routes_out=(('/(?P<a>.*)','/web2py/\g<a>'),)
logging = 'debug'

Can anybody help me, plz?
Reply all
Reply to author
Forward
0 new messages