473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

re-point mod_python - is it possible?

i've upgraded my RHEL3 box to run python 2.3. problem is, mod_python
still points to the old python 2.2. is there any way to tell
mod_python that i've got a new version of python installed, and
to use that version now?

any help would be great - thanks!

Mar 7 '07 #1
2 1129
On Mar 7, 3:08 pm, "leland" <richard.lel...@gmail.comwrote:
i've upgraded my RHEL3 box to run python 2.3. problem is, mod_python
still points to the old python 2.2. is there any way to tell
mod_python that i've got a new version of python installed, and
to use that version now?

any help would be great - thanks!
First off, your existing mod_python will only work against Python 2.2.
You cannot simply coax it into trying to use Python 2.3. If you have
completely replaced Python 2.2 with 2.3 such that 2.3 is now the
default Python version, then all you need to do is recompile
mod_python from source code, or install prebuilt mod_python package
compiled against 2.3.

If however you now have both Python 2.2 and 2.3 installed at the same
time in different locations, it can get a bit more tricky. If this is
the case and even if you reinstall mod_python which has been compiled
against 2.3, you can have problems by fact that the way Python
initialises itself involves searching for 'python' executable in PATH.
If the version it finds is actually that for Python 2.2, even though
mod_python is built against 2.3, it may attempt to try and use Python
library from 2.2. If this is the case, you need to ensure that the
PATH environment used by Apache when started finds 'python' for 2.3
first.

Graham

Mar 7 '07 #2
great explaination - thanks graham!

Mar 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.