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.

Python 2.5 - Does it really break things?

Discussion in 'General Discussion' started by shacker23, May 29, 2008.

  1. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    CentOS ships with Python 2.4.3, and the default yum repos don't offer an upgrade to 2.5, even though it's been out for quite a while.

    Our developers really want Python 2.5 to run the latest Django features, but a cPanel consultant told us he thought upgrading Python could break some aspects of cPanel.

    Is it true that upgrading Python will break cPanel? And if so, what aspects? If we install Python 2.5 separately in another location, what will it take to get mod_python working with it?

    Does anyone have any insight/experience with this? Tips or cookbooks on best way to proceed here?

    Thanks much.
     
  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
    I know Mailman relies on Python. However, I am hard-pressed trying to think of any other cPanel/WHM functionality that relies on Python as most of it is written in Perl, with some third party PHP scripts thrown into the mix (e.g. Roundcube).
     
  3. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    According to the Mailman installation wiki, Mailman should work fine on python 2.5.

    So assuming we're willing to embark on that upgrade "risk," what would be the cleanest method? Add another repo and do a yum update? Would doing so break mod_python?
     
  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
    Since you mention mod_python, do you have your own implementation of mod_python at this time? I ask since we do not natively support this at this time. Though I will admit that our staff members doing the presentation on custom EasyApache modules at the cPanel Conference is using mod_python in their examples.
     
  5. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    Ah, you're right. I hadn't even noticed that was missing. Sure would be nice to have it be native, hint hint :)

    But it's starting to sound now like the safest method for us might be to install python 2.5 in a separate directory and handle it with fastcgi instead. Does that sound clean?
     
  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
    Feel welcome to submit it as an official feature request on http://bugzilla.cpanel.net

    I'm not intimately familiar with the Apache configuration stuff myself, but I would also recommend making any appropriate backups.
     
Loading...

Share This Page