PDA

View Full Version : making ISP Manger see updated python


krisj
01-31-2011, 06:52 PM
Hi there,

I am running ISP manager on CloudLinux and since it comes with python 2.4 as a system package I installed python 2.6 from epel repo woth yum as an extra package.

The quesiton is - how do I make the ISP plugins that require the Python >= 2.5 recognize the other python installation besides the default system one?

From ISP documentation:
"Several version of the interpreter are not supported, verification is started by the command like "python --version", if necessary, the server can be configured to start a required version by default. "

does it mean I would have to change the python version system wide?

For now I am using a workaround like this:

- I installed the plguins that require the python 2.5 or later
- I went to the /usr/local/ispmgr/addon directory
- edited the python scripts of the corresponding plugins to use the alternative python install. In my case I changed the first line of the .py scripts from:
#!/usr/bin/env python
to:
#!/usr/bin/env python2.6

and they seem to work.

Is this a recommended way of achieving the plugin functionality or is there a better way than hacking them all manually? And will I be breaking stuff by using these hacks?

many thanks,
Kris

vian
02-17-2011, 08:25 AM
Hello. As it's written in the documentation ISPmanager does not support several versions of the interpreter. So there is no other way except you one, but keep in minf that an update may overwrite plugin.

krisj
05-15-2011, 07:39 AM
is it safe to just upgrade the python to a newer version or could this break ispmanager?

vian
05-15-2011, 04:00 PM
Ispmanager does not depend on python. You can update it.