I want to install mod_wsgi, I'm currently running apache2 on my ubuntu server.

Best Regards,

link|improve this question

67% accept rate
feedback

2 Answers

You have not said which version of Ubuntu you are running, but I have checked and it appears in the repositories so you can install using

sudo apt-get install libapache2-mod-wsgi

Enter your password when prompted. You will likely need to restart httpd once installation is complete.

link|improve this answer
Pfff, I have installed it, restarted my apache but still cannot run python scripts in the browser – Uffo Mar 8 '10 at 15:36
Apologies I thought you were just asking how to install it because it can be a hassle finding the pre compiled libraries for some distributions. I hope I answered that particular question fully. You still have a few steps to follow to get python scripts to run. Have a look at some of these links for more information. serverfault.com/questions/91468/… grok.zope.org/documentation/tutorial/… I hope you are now able to run python as required. – Richard Holloway Mar 8 '10 at 21:37
feedback

mod_wsgi provides a method for running python scripts in the browser.

Are you trying to run .py files in the browser? You can also run them through CGI with:

AddHandler cgi-script .py

make sure the script is chmod 755 and contains a proper path at the top, i.e. #!/usr/bin/python

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.