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.

Php 5.2

Discussion in 'EasyApache' started by MantisComp, Mar 5, 2014.

  1. MantisComp

    MantisComp Active Member

    Joined:
    Oct 16, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Hi
    I need to get PHP 5.2.x onto my server as I am migrating from another WHM server which does have 5.2, many websites won't work (ZEND) with 5.3 +.
    Is this possible?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    PHP 5.2 is end-of-life and thus may expose your system to vulnerabilities or bugs that are not present in newer versions of PHP. It's highly recommended to upgrade any scripts that are not compatible with newer versions of PHP. We do provide PHP 5.2 as a custom opt mod, but keep in mind that it's not supported. You can find instructions on how to install it here:

    EasyApache - Custom Opt Mod

    Thank you.
     
  3. MantisComp

    MantisComp Active Member

    Joined:
    Oct 16, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Thanks
    I have installed 5.2 but not yet run EasyApache.
    Seeing this now, will I be able to re-enable these versions at a later time by simply unchecking this option?:


    PHP 5.2.17 support (no FastCGI) [More Info ↑]

    This option will make the following changes to your profile prior to the build:
    Disables:
    PHP 5
    PHP 5.3.27 support
    PHP 5.3.28 support
    PHP 5.4.25 support
    PHP 5.5.9 support
     
  4. Shavaun

    Shavaun Well-Known Member

    Joined:
    Aug 15, 2013
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Yes, you can switch back to a supported version of PHP by deselecting PHP 5.2.17 in EasyApache (on the Exhaustive Options List), and selecting the desired PHP version from the PHP Version interface.
     
  5. MantisComp

    MantisComp Active Member

    Joined:
    Oct 16, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Thanks

    I have seen other control panel system where I can select the version of PHP per site rather than per server, can this be done in WHM?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This is not possible without the use of a third-party plugin such as PHP Selector with Cloud Linux:

    Cloud Linux - PHP Selector

    Thank you.
     
Loading...

Share This Page