US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting


Reply
 
Thread Tools
Old 01-31-2011, 06:52 PM   #1
Junior Member
 
Join Date: Jan 2011
Posts: 20
krisj is on a distinguished road
Question 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
krisj is offline   Reply With Quote
Old 02-17-2011, 08:25 AM   #2
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

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.
vian is offline   Reply With Quote
Old 05-15-2011, 07:39 AM   #3
Junior Member
 
Join Date: Jan 2011
Posts: 20
krisj is on a distinguished road
Default safe or not

is it safe to just upgrade the python to a newer version or could this break ispmanager?
krisj is offline   Reply With Quote
Old 05-15-2011, 04:00 PM   #4
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

Ispmanager does not depend on python. You can update it.
vian is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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