ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   making ISP Manger see updated python (http://forum.ispsystem.com//showthread.php?t=1314)

krisj 01-31-2011 06:52 PM

making ISP Manger see updated python
 
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

safe or not
 
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.


All times are GMT +2. The time now is 08:34 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.