8

For example, there're two versions of django (1.1, 1.4) installed on the server, and two versions of python(2.6,2.7) as well. Is there a way to check which version of python/library is being used by WSGI?

(in other words, is there a way to check which interpreter is used to run the scripts under /etc/apache2/wsgis-available/ directory)

3
  • 1
    @IgnacioVazquez-Abrams what I mean is how to check which interpreter is used to run the scripts under /etc/apache2/wsgis-available/ directory.. Commented Jul 23, 2013 at 2:46
  • You mean by mod_wsgi? Commented Jul 23, 2013 at 2:48
  • I understood the question @Hanfei, its a pity about these nit pickers. Commented Feb 14, 2017 at 3:36

2 Answers 2

6

Running ldd Or Dependency Walker against the mod_wsgi module will tell you which version of the Python library it was built against.

e.g.

ldd <PATH TO YOUR MOD_WSGI MODULE>/mod_wsgi.so

more documentation here

Sign up to request clarification or add additional context in comments.

Comments

0

This and much more is all covered in the mod_wsgi documentation.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.