mod_wsgi

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

mod_wsgi

Postby jsdey » Mon Mar 16, 2015 3:03 pm

I installed mod_wsgic on RPi 2 following the instructions from https://wiki.archlinux.org/index.php/Mod_wsgi . The test wsgi_app.py application is called from apache but the response in the browser is:

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
robo23
Apache/2.4.12 (Unix) mod_wsgi/4.4.8 Python/3.4.3

Any help on this would be greatly appreciated. Thanks.
jsdey
 
Posts: 2
Joined: Mon Mar 16, 2015 2:46 pm

Re: mod_wsgi

Postby WarheadsSE » Mon Mar 16, 2015 3:42 pm

Did you look at the logs for Apache?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: mod_wsgi

Postby jsdey » Mon Mar 16, 2015 4:46 pm

Changing wsgi_app.py statement from output = str(sys.version) to output =bytes(sys.version,'utf-8) solves my problem.
jsdey
 
Posts: 2
Joined: Mon Mar 16, 2015 2:46 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 10 guests