MantisComp

Active Member
Oct 16, 2008
36
0
56
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

MantisComp

Active Member
Oct 16, 2008
36
0
56
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
 

Shavaun

Well-Known Member
Aug 15, 2013
106
0
91
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.
 

MantisComp

Active Member
Oct 16, 2008
36
0
56
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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?
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.