Is it possible run both PHP 5.x and PHP 7.2 on the same VPS
Clash 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.
mysql-connection
add a comment |Â
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.
mysql-connection
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
add a comment |Â
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.
mysql-connection
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
mysql-connection
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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