Is it possible run both PHP 5.x and PHP 7.2 on the same VPS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a CentOS 7.5 virtuozzo [server] VPS with A2. Here is the version information:



root@server [~]# rpm --query centos-release
centos-release-7-5.1804.4.el7.centos.x86_64

root@server [~]# uname -a
Linux server.myservername.com 2.6.32-042stab120.19 #1 SMP Mon Feb 20 20:05:53 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux


My wish is to run both PHP 5.x and PHP 7.2 side-by-side on the same VPS. I don't want to make a wholesale change to all accounts because I need to be able to test compatibility of custom WordPress code and installed plugins for all sites with the latest version of PHP prior to taking this step.



I have enabled the MultiPHP Manager feature using EasyApache4. I've also added a handler for PHP 7.2 to the installation. I switched one account/cPanel to the PHP 7.2 handler.



I have restarted Apache Services.



When I review phpinfo, I can see that it is using PHP Version 7.2.10 but when I review phpMyAdmin for that cPanel, it is still using PHP version: 5.6.30.



It appears that there is more to this than I'm able to find information about on the web at large. Can anyone here provide direction or instruction on how I can complete this mission? Any guidance will be greatly appreciated.










share|improve this question























  • It seems you already have both versions running on the same machine.
    – RalfFriedl
    Sep 25 at 18:53






  • 2




    You can have both installed and running, but you need to have some way to tell your web server which PHP engine (i. e. web server module) to run when a client requests a certain file. A common way to do this is to default all .php files to (say) PHP7, while .php5 files get run through PHP5. You could also do this at the virtual host or directory level.
    – DopeGhoti
    Sep 25 at 19:03















up vote
0
down vote

favorite












I have a CentOS 7.5 virtuozzo [server] VPS with A2. Here is the version information:



root@server [~]# rpm --query centos-release
centos-release-7-5.1804.4.el7.centos.x86_64

root@server [~]# uname -a
Linux server.myservername.com 2.6.32-042stab120.19 #1 SMP Mon Feb 20 20:05:53 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux


My wish is to run both PHP 5.x and PHP 7.2 side-by-side on the same VPS. I don't want to make a wholesale change to all accounts because I need to be able to test compatibility of custom WordPress code and installed plugins for all sites with the latest version of PHP prior to taking this step.



I have enabled the MultiPHP Manager feature using EasyApache4. I've also added a handler for PHP 7.2 to the installation. I switched one account/cPanel to the PHP 7.2 handler.



I have restarted Apache Services.



When I review phpinfo, I can see that it is using PHP Version 7.2.10 but when I review phpMyAdmin for that cPanel, it is still using PHP version: 5.6.30.



It appears that there is more to this than I'm able to find information about on the web at large. Can anyone here provide direction or instruction on how I can complete this mission? Any guidance will be greatly appreciated.










share|improve this question























  • It seems you already have both versions running on the same machine.
    – RalfFriedl
    Sep 25 at 18:53






  • 2




    You can have both installed and running, but you need to have some way to tell your web server which PHP engine (i. e. web server module) to run when a client requests a certain file. A common way to do this is to default all .php files to (say) PHP7, while .php5 files get run through PHP5. You could also do this at the virtual host or directory level.
    – DopeGhoti
    Sep 25 at 19:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a CentOS 7.5 virtuozzo [server] VPS with A2. Here is the version information:



root@server [~]# rpm --query centos-release
centos-release-7-5.1804.4.el7.centos.x86_64

root@server [~]# uname -a
Linux server.myservername.com 2.6.32-042stab120.19 #1 SMP Mon Feb 20 20:05:53 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux


My wish is to run both PHP 5.x and PHP 7.2 side-by-side on the same VPS. I don't want to make a wholesale change to all accounts because I need to be able to test compatibility of custom WordPress code and installed plugins for all sites with the latest version of PHP prior to taking this step.



I have enabled the MultiPHP Manager feature using EasyApache4. I've also added a handler for PHP 7.2 to the installation. I switched one account/cPanel to the PHP 7.2 handler.



I have restarted Apache Services.



When I review phpinfo, I can see that it is using PHP Version 7.2.10 but when I review phpMyAdmin for that cPanel, it is still using PHP version: 5.6.30.



It appears that there is more to this than I'm able to find information about on the web at large. Can anyone here provide direction or instruction on how I can complete this mission? Any guidance will be greatly appreciated.










share|improve this question















I have a CentOS 7.5 virtuozzo [server] VPS with A2. Here is the version information:



root@server [~]# rpm --query centos-release
centos-release-7-5.1804.4.el7.centos.x86_64

root@server [~]# uname -a
Linux server.myservername.com 2.6.32-042stab120.19 #1 SMP Mon Feb 20 20:05:53 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux


My wish is to run both PHP 5.x and PHP 7.2 side-by-side on the same VPS. I don't want to make a wholesale change to all accounts because I need to be able to test compatibility of custom WordPress code and installed plugins for all sites with the latest version of PHP prior to taking this step.



I have enabled the MultiPHP Manager feature using EasyApache4. I've also added a handler for PHP 7.2 to the installation. I switched one account/cPanel to the PHP 7.2 handler.



I have restarted Apache Services.



When I review phpinfo, I can see that it is using PHP Version 7.2.10 but when I review phpMyAdmin for that cPanel, it is still using PHP version: 5.6.30.



It appears that there is more to this than I'm able to find information about on the web at large. Can anyone here provide direction or instruction on how I can complete this mission? Any guidance will be greatly appreciated.







mysql-connection






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 25 at 18:29









G-Man

11.9k92658




11.9k92658










asked Sep 25 at 18:16









Marj Wyatt

11




11











  • It seems you already have both versions running on the same machine.
    – RalfFriedl
    Sep 25 at 18:53






  • 2




    You can have both installed and running, but you need to have some way to tell your web server which PHP engine (i. e. web server module) to run when a client requests a certain file. A common way to do this is to default all .php files to (say) PHP7, while .php5 files get run through PHP5. You could also do this at the virtual host or directory level.
    – DopeGhoti
    Sep 25 at 19:03

















  • It seems you already have both versions running on the same machine.
    – RalfFriedl
    Sep 25 at 18:53






  • 2




    You can have both installed and running, but you need to have some way to tell your web server which PHP engine (i. e. web server module) to run when a client requests a certain file. A common way to do this is to default all .php files to (say) PHP7, while .php5 files get run through PHP5. You could also do this at the virtual host or directory level.
    – DopeGhoti
    Sep 25 at 19:03
















It seems you already have both versions running on the same machine.
– RalfFriedl
Sep 25 at 18:53




It seems you already have both versions running on the same machine.
– RalfFriedl
Sep 25 at 18:53




2




2




You can have both installed and running, but you need to have some way to tell your web server which PHP engine (i. e. web server module) to run when a client requests a certain file. A common way to do this is to default all .php files to (say) PHP7, while .php5 files get run through PHP5. You could also do this at the virtual host or directory level.
– DopeGhoti
Sep 25 at 19:03





You can have both installed and running, but you need to have some way to tell your web server which PHP engine (i. e. web server module) to run when a client requests a certain file. A common way to do this is to default all .php files to (say) PHP7, while .php5 files get run through PHP5. You could also do this at the virtual host or directory level.
– DopeGhoti
Sep 25 at 19:03
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471392%2fis-it-possible-run-both-php-5-x-and-php-7-2-on-the-same-vps%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471392%2fis-it-possible-run-both-php-5-x-and-php-7-2-on-the-same-vps%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?