Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there anyway of getting mod python to run on the latest version of python, or do i have to downgrade my python installation to 2.5.5?

share|improve this question

migrated from superuser.com Apr 28 '10 at 15:20

This question came from our site for computer enthusiasts and power users.

    
user crosspost on SO: stackoverflow.com/questions/2730671/… –  quack quixote Apr 28 '10 at 15:17

4 Answers 4

up vote 2 down vote accepted

This doesn't answer your question, but mod_wsgi has pretty much superseded mod_python. If possible, I'd consider using it http://code.google.com/p/modwsgi/

share|improve this answer

You need to build it using python 2.6's development libraries afaik, but a much better solution is to use FastCGI/SCGI, which will let you run not only multiple versions of python on apache, but also multiple versions of php, ruby, and other webapps, even if you decide you want to move to lighttpd, nginx, or some other webserver too. It's not without issues, but the (relatively) standardised interface that FastCGI provides is seriously underrated. Getting started with mod_fcgid on apache isn't much trouble at all.

share|improve this answer

You didn't say which operating system you're running but I see that under Debian it's not supported under Python 2.6 or higher, even in the testing or unstable version.

Mod_python is pretty much obsolete. Most people have switched to mod_wsgi and are building Python apps using wsgi compatible frameworks such as Django, Pylons etc.

http://code.google.com/p/modwsgi/

share|improve this answer

That you are even asking makes me think you are using Windows.

Windows binaries for mod_python are only available up to Python 2.5. There are no binaries for mod_python for Python 2.6 and Python 3.X is not supported at all by mod_python. You could build mod_python yourself from source code, but you will need Visual Studio 2008.

On most UNIX systems which provide binary packages, you should have no issues finding mod_python for Python 2.6.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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