I have tried deploying web2py with below method -- on cpanel
[http://web2pyslices.com/main/slices/take_slice/76#end] but no success
till now.
i executed all the steps as descibed and succeeded

but what I want to know is -
1- how do i access my application from the web?
2- does it need web2py runnning on the server ?
3- if my site is www.example.com and I have created folder with web2py
unzipped called 'example.com' in public_html. Now what ?
4- What url will work in the above case?
My structure is
             public_html
               |--> example.com
                    |--> Web2py unzipped here directly (all files and
directories)


I have created .htaccess as --
RewriteEngine On
RewriteRule ^web2py\.fcgi/ - [L]
RewriteRule ^(.*)$ web2py.fcgi/$1 [L]

I have dispatch.fcgi as --
#!/home/(my acutal username)/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 routes.py is as ---
routes_in=(('/web2py/(?P<a>.*)','/\g<a>'),)
routes_out=(('/(?P<a>.*)','/web2py/\g<a>'),)



Also suggest what I might have missed
I have python2.6.6 , virtualenv1.4.9, ez_setup, flup, mysql-python,
routes.py is in place as above..

Please let me know what i have missed. Also what else I need to get
www.example.com working when I hit this url in the browser

Regards, Rahul

Reply via email to