0

We currently have a server running python2.6 + apache and mod_wsgi that runs with Django 1.3.

I plan to use the following guide to install python 2.7 http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/.

Then use pip to install the packages for 2.7 which I believe using pip install after installing python2.7 will handle this.

After this I think recompiling mod_wsgi with it pointing to the python2.7 path should handle making Apache2 load the correct version of python for the site.

I was just wondering if I have missed something or whether this process is completely wrong and shouldn't be used.

Thanks.

Jeff_Hd
  • 103
  • 4

1 Answers1

0

So, for an actual answer to your question: If you use mod_wsgi in embedded mode, you will need to recompile it. But I'd suggest running it in daemon mode, so you don't have to recompile mod_wsgi (or restart apache whenever you app changes, just the wsgi daemon)

Dennis Kaarsemaker
  • 19,277
  • 2
  • 44
  • 70