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

  • Home
  • SEARCH
  • 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 7519023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:50:09+00:00 2026-05-30T01:50:09+00:00

I had a box with debian on it and python 2.6, I installed apache,

  • 0

I had a box with debian on it and python 2.6, I installed apache, mod_wsgi and configured everything and then realized by app is not compatible with python 2.6; so I installed python 2.7 from testing rep, updated-alternatives to make the new python the default one, installed django and apt-get installed libapache2-mid-wsgi and it seemed to install ok and restarted apache:

Unpacking libpython2.7 (from .../libpython2.7_2.7.2-8_i386.deb) ...
Preparing to replace libapache2-mod-wsgi 3.3-2 (using .../libapache2-mod-wsgi_3.3-4_i386.deb) ...
Unpacking replacement libapache2-mod-wsgi ...
Setting up libpython2.7 (2.7.2-8) ...
Setting up libapache2-mod-wsgi (3.3-4) ...
Restarting web server: apache2...

however, apache still uses the older version of python:

Exception Value:    

invalid syntax (views.py, line 14)

Exception Location:     /usr/local/lib/python2.6/dist-packages/django/utils/importlib.py in import_module, line 35
Python Executable:  /usr/bin/python
Python Version:     2.6.6
Python Path:    

['/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/local/lib/python2.6/dist-packages',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/pymodules/python2.6',
 '/home',
 '/home/portman']

what is it that I need to do to help mod_wsgi see the proper version of python?

  • 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-30T01:50:09+00:00Added an answer on May 30, 2026 at 1:50 am

    Simple, needed to configure wsgi.load in mods-enabled to point to the right .so file

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

Sidebar

Related Questions

I had PHP 5.2.2 installed on a previous box (also WinXP Pro sp3) and
I had a win7 x64 box with a local Sharepoint 2010 installed on an
I had cacti installed on my ArchLinux box but I don't know after upgrading
Has anyone had a problem running Clojure Box in Windows 7? I am trying
I had a discussion with some colleagues mentioning that there are not too many
I had an idea, if I add a python .py file to my C#
I had to delete all the rows from a log table that contained about
If I had a box 100px wide by 50px high, so the area is
I had login Page and it worked well but remember me check box didn't
i had made a program for text to speech convertion in python..and now want

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.