Jump to content

Recommended Posts

Posted

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...

Posted

What server are you on?

 

What version of python are you using?

Posted

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

Posted

You should be able to use web.py by just writing a standard *.wsgi file.

Posted

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

Posted

I solved most problems.

I had to install web2py directly in the public_html folder.

 

in. htaccess file I put:

 

 

RewriteEngine On

RewriteBase /

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
This topic is now closed to further replies.
×
×
  • Create New...