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.

How to install php 5.2.x as default PHP

Discussion in 'EasyApache' started by gryzli, Feb 4, 2016.

  1. gryzli

    gryzli Active Member

    Joined:
    Jul 23, 2012
    Messages:
    44
    Likes Received:
    5
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi guys,

    I'm trying to migrate some old Centos 5 based cPanels, to a newer Centos 7 based machines.

    There is one requirement I must achieve - to preserve the default PHP version to be 5.2.X.

    I see that in recent EA versions, there is no more option for PHP 5.2.x to be installed as a system-wide default version.

    Could you suggest any effective method of using default php 5.2.x with the newer cPanel/EA versions ?

    Thanks in advance.
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    You won't find PHP 5.2 provided by cPanel unfortunately. This is an extremely old PHP version, and it's almost a disservice to offer this vulnerable PHP version to end users.

    If you really do need PHP 5.2, I'd recommend checking out CloudLinux's Hardened PHP. They patch and backport security fixes into super old PHP versions, so this might be a good fit for your environment.

    CloudLinux - Main | New template
     
  3. gryzli

    gryzli Active Member

    Joined:
    Jul 23, 2012
    Messages:
    44
    Likes Received:
    5
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Twitter:
    Let say I'm able to install hardened version as an alternative version (for example in /usr/local/php5.2). What would be the right way of setting this version as default server-wide one ?
     
  4. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
  5. gryzli

    gryzli Active Member

    Joined:
    Jul 23, 2012
    Messages:
    44
    Likes Received:
    5
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks cPJacob !

    The suggested link, has some useful ideas, which I will use too.

    I'm going to setup this on my own, hope to work fine.
     
Loading...

Share This Page