Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7529397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:39:05+00:00 2026-05-30T04:39:05+00:00

Can wsgi be configured to use a specific python executable? When using the WSGIPythonHome

  • 0

Can wsgi be configured to use a specific python executable?

When using the WSGIPythonHome directive, you supply a prefix. What does mod_wsgi look for in that directory? I assume it looks in the supplied directory for the executable ../bin/python . If the executable is called, say, python26, will it be found? I assume not.

(Details: The system python on the server I’m using is 2.4 and I’m trying to upgrade. I don’t have sudo on the machine, and I’m trying to work with my admin on this… I’m not sure why we can’t just install the new version of python in /opt or /usr/local with the standard directory structure, so we can use WSGIPythonHome in the normal way, which is what I would do. I’m just trying to work with him and be agreeable.)


Alternatively, does mod_wsgi just use the python binary it was compiled against? So if we recompile mod_wsgi with the new version of python, will it always use that one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:39:07+00:00Added an answer on May 30, 2026 at 4:39 am

    Yes, you must recompile mod_wsgi from source code against version/installation of Python you wish to use. See:

    http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple_Python_Versions

    and:

    http://code.google.com/p/modwsgi/wiki/InstallationIssues#Unable_To_Find_Python_Shared_Library

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I profile a python script running on mod_wsgi on apache I would
I'm working on a python based server product where a user can install WSGI-based
I understand that I should use mod_wsgi to run Python, and I have been
I can't seem to figure out how to access POST data using WSGI. I
Can someone explain the difference between apache mod_wsgi in daemon mode and django fastcgi
I'm searching a wsgi middleware which I can warp around a wsgi applications and
Can I get a 'when to use' for these and others? <% %> <%#
Bottle can use several webservers: Build-in HTTP development server and support for paste, fapws3,
I'm aware I can store it anywhere in my python path and all, but
I want to build mod_wsgi against a Python which I have built myself from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.