Page 1 of 1
Plesk 7.5.4 and python 2.4.2 and mod_python 3.1.4
Posted: Sat Nov 05, 2005 5:06 pm
by acidbox
I have a few questions about upgrading python/mod_python on my plesk 7.5.4 (RHEL3) server.
Are there any issues with installing
mod_python 3.1.4 on a RHEL 3 box running Plesk 7.5.4? In other words, will it break Plesk?
Will python 2.4.2 work with Plesk? Is plesk at all dependant on python for anything, and if so, is it compatible with the newest python?
Can I use an
RHEL/CentOS RPM to install either of the above? Does Plesk use the standard installation locations? Would it be better to do a make, make install from the source?
Thanks in advance for help on any/all of the questions

Posted: Sun Nov 06, 2005 1:48 pm
by scott
Plesk doesn't use python anywhere, so you should be safe there. Where you could run into problems is with up2date and yum, both of which use python. Just make sure that you can back out the update in case it breaks on of those 2 apps, otherwise you should be OK.
Posted: Wed Nov 09, 2005 12:22 pm
by acidbox
I made the upgrade to Python 2.4.2. Python works great, but you were right, up2date is completely toast. However, Yum still works.
I'm not real familiar with Python, but I know that a lot of the python libraries don't exist in the new version, like mysqldb. I can't find a devel rpm for the newest version either, so I don't know what to do. Bah.
I can get up2date to work by copying an older version of python into the /usr/bin/ because the libraries for both versions still exist. Then I have to change it back to the new version to get the new python running.
What a pain.
Posted: Wed Nov 09, 2005 7:43 pm
by scott
Now you see why I lik yum so much

Sadly you cant get at the RHEL updates with it, have you tried building the 4ES version of up2date on your box? It might support the newer version of python.
Posted: Tue Nov 15, 2005 12:17 am
by acidbox
Just for anyone else on the forum who might be interested, I was able to install the CentOS3 Bootstrap RPM from here:
http://www.python.org/pyvault/ and it upgraded my python nicely. It also adds the pyvault into Yum, which then allows you to update just about all of python and its deps via yum.
I also installed mod_python 3.1.4 from the source and it worked great.
I'm running 7.5.4 on RHEL3.
Posted: Tue Nov 15, 2005 11:03 am
by scott
Cool, so from that yum channel you're able to install python 2.3 or 2.4 cleanly?
Posted: Tue Nov 15, 2005 6:03 pm
by acidbox
scott wrote:Cool, so from that yum channel you're able to install python 2.3 or 2.4 cleanly?
Python 2.4.2
After you do the bootstrap, you'll need to go through the yum list and install a bunch of dependences like tcl, tk, tkinter, tix, etc to get the majority of python programs running correctly.
It's a lot better than manually installing it though

Posted: Wed Nov 16, 2005 11:37 am
by scott
fantastic, that actually solves some issues Im having with another project Im working on (
www.ossim.net), which requires python 2.3 and above.
Posted: Fri Jul 21, 2006 4:21 am
by kreek
Hi,
Bear with me I've got a ton of questions (been searching all over and this is literally the only post on the subject).
I've been trying to get the Django framework running on my server (RHEL3 Plesk 7.5.4) it requires python 2.3+ and mod_python 3.2+.
Did you install python 2.4 with
http://www.python.org/pyvault/ or did you install python2.4 from source then use
http://www.python.org/pyvault/ for dependencies?
I tried the bootstrap from
http://www.python.org/pyvault/ and it installed python 2.4 but broke yum half way throught the script - the script wanted to use yum to install all the dependencies but each gave an error. I ended up with this error everytime I tried to run yum
/usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: undefined symbol: _rpmts_stats
I read that doing
rm /var/lib/rpm/__*
rpm --rebuilddb
fixed the error but that didn't work for me. I'm hoping an install of python from source will work.
Did your python 2.4 install overwrite python 2.2 or install it in another location?
When you installed mod_python could you still use Plesk's site setup to add mod_python or do you add it manually through a vhost.conf file?
thanks!