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 |
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.
|
safe or not
is it safe to just upgrade the python to a newer version or could this break ispmanager?
|
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.