Since self-explaining text didnt work, I will make it 50 times shorter. I'm on Ubuntu 11.10 with XAMPP and other stuff in /opt/lampp/ How to add python there?
Installing Python on Apache
1.7k Views Asked by Gundars Mēness At
2
There are 2 best solutions below
3

I realize that you already have an installed version of apache, but the Apache2 deb packages are quite complete on Ubuntu. If you just want to get up and running, you could just
sudo apt-get install libapache2-mod-python
and that should pull in all of your dependencies. You would need to either shutdown the /opt installed apache, or just set the deb-packaged Apache to Listen 8080 (or some such). the conf files are in /etc/apache2.
Also, if you want to see what else is available form the repos, (everything you have installed is in there):
sudo apt-cache search apache2
Good luck! speeves
On Ubuntu, you can install mod_wsgi like this :
Use the python version you're more confortable with AND that will be compatible with the libs you're using :)