felipe73 Posted November 16, 2011 Posted November 16, 2011 Anyone had tried to use web2py in Heliohost?I have played with .htaccess, trying to make something simlar to wath suggest for django, but i ave only error 500...
Guest xaav Posted November 16, 2011 Posted November 16, 2011 What server are you on? What version of python are you using?
felipe73 Posted November 17, 2011 Author Posted November 17, 2011 I'm on stevie. Rhis is the signature:Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/3.3 Python/2.7.1 Server at toscofanta.heliohost.org Port 80
Guest xaav Posted November 18, 2011 Posted November 18, 2011 You should be able to use web.py by just writing a standard *.wsgi file.
felipe73 Posted November 21, 2011 Author Posted November 21, 2011 Thanx, but i'm talking about web2py, not web.py.with web.py is going allright.With web2py this is the log:[Mon Nov 21 00:37:27 2011] [error] [client 95.234.26.42] File does not exist: /home1/felipe73/public_html/404.shtml[Mon Nov 21 00:37:27 2011] [error] [client 95.234.26.42] File does not exist: /home1/felipe73/public_html/favicon.ico[sun Nov 20 22:37:03 2011] [error] [client 95.234.26.42] File does not exist: /home1/felipe73/public_html/500.shtml, referer: http://toscofanta.heliohost.org/[sun Nov 20 22:37:03 2011] [error] [client 95.234.26.42] OSError: [Errno 13] Permission denied: '/home1/felipe73/public_html/web2py/deposit', referer: http://toscofanta.heliohost.org/[sun Nov 20 22:37:03 2011] [error] [client 95.234.26.42] File "/home1/felipe73/public_html/web2py/gluon/admin.py", line 439, in create_missing_folders, referer: http://toscofanta.heliohost.org/[sun Nov 20 22:37:03 2011] [error] [client 95.234.26.42] File "/home1/felipe73/public_html/web2py/gluon/main.py", line 68, in , referer: http://toscofanta.heliohost.org/[sun Nov 20 22:37:03 2011] [error] [client 95.234.26.42] File "/home1/felipe73/public_html/web2py/wsgihandler.py", line 33, in , referer: http://toscofanta.heliohost.org/[sun Nov 20 22:37:03 2011] [error] [client 95.234.26.42] mod_wsgi (pid=23515): Exception occurred processing WSGI script '/home1/felipe73/public_html/web2py/wsgihandler.py'., referer: http://toscofanta.heliohost.org/[sun Nov 20 22:37:03 2011] [error] [client 95.234.26.42] mod_wsgi (pid=23515): Target WSGI script '/home1/felipe73/public_html/web2py/wsgihandler.py' cannot be loaded as Python module., referer: http://toscofanta.heliohost.org
felipe73 Posted November 22, 2011 Author Posted November 22, 2011 I solved most problems.I had to install web2py directly in the public_html folder. in. htaccess file I put: RewriteEngine OnRewriteBase /RewriteRule ^dispatch\.wsgi/ - [L]RewriteRule ^(.*)$ dispatch.wsgi/$1 [QSA,L] I created the file by copying it from dispatch.wsgi wsgihandler.py. Finally, for each "myapp" I had to give write permissions (666) for the application directory /myapp / cache and application / myapp / databases and the files they contain. Now it all works. I just have to find out how:- Use admin (at me "admin disabled: communication is not secure")- Being able to run everything from the web2py folder and not from the root If anyone has any suggestion is very welcome.Anyway thanks for the support!
Guest xaav Posted November 24, 2011 Posted November 24, 2011 Glad your problem got solved! Please spare a few minutes to take our brief survey: http://feedback.heliohost.org/ Your participation in this survey is greatly appreciated.
Recommended Posts