The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

upgrade python on whm?

Discussion in 'General Discussion' started by disgust, Apr 10, 2009.

  1. disgust

    disgust Member

    Joined:
    Nov 30, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    is it possible to upgrade python via whm?

    if done outside of whm, will it likely break whm or things related to it?

    I need it upgraded because I'm trying to use iotop
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you use yum to upgrade Python, you should be alright. However, I strongly advise against upgrading Python by other means.
     
  3. disgust

    disgust Member

    Joined:
    Nov 30, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    why is it only okay to update using yum?

    the problem is I need 1.5 or higher for iotop but the highest yum version is below that.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The comment for only using yum was specifically for Python itself.
     
  5. disgust

    disgust Member

    Joined:
    Nov 30, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sorry, I'm still confused.

    I need python 1.5 as it's a dependency for other software we need.

    there's no yum rpm for python 1.5 or higher.

    because of that, the only way to update python would be without using yum. is there a problem with this? why?
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Mailman, the software that cPanel/WHM uses for mailing lists, uses Python 1.5 or later. Therefore a version of Python higher than 1.5 should already be installed on your server. IIRC, I believe one of the Python 2.x versions is installed by default.
     
  7. disgust

    disgust Member

    Joined:
    Nov 30, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sorry, my mistake. I meant python 2.5
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    At this time, we haven't tested against update methods other than YUM. So if you proceed, you are doing so at your own risk. I recommend testing this on a test server before proceeding on a production server.
     
  9. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    What is your Operating System and what version?
     
  10. disgust

    disgust Member

    Joined:
    Nov 30, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    CENTOS 5.3 x86_64
     
  11. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    The current version deployed with x86_64 and i386 is: Python v2.4.3-24.el5. You can update Python to v2.5.x, manually, at your own risk.
     
  12. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    CentOS uses YUM to provide automated and simplified updates. YUM relies upon Python. If you upgrade Python to a newer version without using YUM ( Meaning you either find a 2.5+ RPM or you compile and install from source ) there is a good chance that you will break YUM.

    The general recommendation if you need a newer version of Python for a specific application is to install Python into /opt and configure the application to use that particular version of Python.
     
  13. disgust

    disgust Member

    Joined:
    Nov 30, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    could you describe in more detail how to do this? or point me in the right direction? pretty new at this
     
  14. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The specifics are not something I can provide as this is not something we can support.

    Please be aware that if you go the route of installing a custom version of python you then take on support responsibilities for that installation ( e.g. tracking security fixes, bug fixes, etc ) as well as any issues that may arise between that installation and the applications that use it. If you are not comfortable using a compiler, debugging and modifying code I do not recommend you take this route.

    That said, the course of installing a custom version of Python into /opt is nearly the same as installing any other software from source. The best guide is to download the source tarball and read the documentation that comes with it. Specifically documents that are specific to installing from source. Google any terms you are not familiar with. Ask questions on various Python mailing lists and forums ( there should be links to these from the main python web site ).
     
Loading...

Share This Page