Switch php version on Cloud (Redhat? Centos?)












0















I'm confused about my cloud VPS. With cat /proc/version I got:



Linux version 2.6.32-754.6.3.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Tue Oct 9 17:27:49 UTC 2018


So, which distro do I have? Red Hat, Centos?



I need to switch the default php version in CLI and Apache.



I got this right now:



# locate bin/php

/opt/cpanel/ea-php54/root/usr/bin/php
/opt/cpanel/ea-php54/root/usr/bin/php-cgi
/opt/cpanel/ea-php54/root/usr/bin/php-config
/opt/cpanel/ea-php54/root/usr/bin/phpize
/opt/cpanel/ea-php54/root/usr/sbin/php-fpm
/opt/cpanel/ea-php55/root/usr/bin/php
/opt/cpanel/ea-php55/root/usr/bin/php-cgi
/opt/cpanel/ea-php55/root/usr/bin/php-config
/opt/cpanel/ea-php55/root/usr/bin/phpize
/opt/cpanel/ea-php55/root/usr/sbin/php-fpm
/opt/cpanel/ea-php56/root/usr/bin/php
/opt/cpanel/ea-php56/root/usr/bin/php-cgi
/opt/cpanel/ea-php56/root/usr/bin/php-config
/opt/cpanel/ea-php56/root/usr/bin/phpize
/opt/cpanel/ea-php56/root/usr/sbin/php-fpm
/opt/cpanel/ea-php70/root/usr/bin/php
/opt/cpanel/ea-php70/root/usr/bin/php-cgi
/opt/cpanel/ea-php70/root/usr/bin/php-config
/opt/cpanel/ea-php70/root/usr/bin/phpize
/opt/cpanel/ea-php70/root/usr/sbin/php-fpm
/usr/bin/php
/usr/bin/php-cgi
/usr/local/bin/php
/usr/local/cpanel/3rdparty/bin/php
/usr/local/cpanel/3rdparty/bin/php-cgi
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/bin/phpize
/usr/local/cpanel/3rdparty/php/56/bin/php
/usr/local/cpanel/3rdparty/php/56/bin/php-cgi
/usr/local/cpanel/3rdparty/php/56/bin/php-config
/usr/local/cpanel/3rdparty/php/56/bin/phpize
/usr/local/cpanel/3rdparty/php/56/sbin/php-fpm
/usr/local/cpanel/bin/php-wrapper


So Im not sure how should I switch from my actual php version:



# php -v


ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.5.38 (cli) (built: Nov 13 2018 20:06:25)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies



to 7.0 ?










share|improve this question























  • What is your “cloud VPS?” Your file listing seems to suggest CPanel is installed. Is this a shared hosting environment? CPanel customizes the environment. You should use CPanel to change your PHP versions according to what the hosting provider supports. /usr/bin/php is probably a symlink to whatever version is active.

    – Appleoddity
    Dec 27 '18 at 5:57
















0















I'm confused about my cloud VPS. With cat /proc/version I got:



Linux version 2.6.32-754.6.3.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Tue Oct 9 17:27:49 UTC 2018


So, which distro do I have? Red Hat, Centos?



I need to switch the default php version in CLI and Apache.



I got this right now:



# locate bin/php

/opt/cpanel/ea-php54/root/usr/bin/php
/opt/cpanel/ea-php54/root/usr/bin/php-cgi
/opt/cpanel/ea-php54/root/usr/bin/php-config
/opt/cpanel/ea-php54/root/usr/bin/phpize
/opt/cpanel/ea-php54/root/usr/sbin/php-fpm
/opt/cpanel/ea-php55/root/usr/bin/php
/opt/cpanel/ea-php55/root/usr/bin/php-cgi
/opt/cpanel/ea-php55/root/usr/bin/php-config
/opt/cpanel/ea-php55/root/usr/bin/phpize
/opt/cpanel/ea-php55/root/usr/sbin/php-fpm
/opt/cpanel/ea-php56/root/usr/bin/php
/opt/cpanel/ea-php56/root/usr/bin/php-cgi
/opt/cpanel/ea-php56/root/usr/bin/php-config
/opt/cpanel/ea-php56/root/usr/bin/phpize
/opt/cpanel/ea-php56/root/usr/sbin/php-fpm
/opt/cpanel/ea-php70/root/usr/bin/php
/opt/cpanel/ea-php70/root/usr/bin/php-cgi
/opt/cpanel/ea-php70/root/usr/bin/php-config
/opt/cpanel/ea-php70/root/usr/bin/phpize
/opt/cpanel/ea-php70/root/usr/sbin/php-fpm
/usr/bin/php
/usr/bin/php-cgi
/usr/local/bin/php
/usr/local/cpanel/3rdparty/bin/php
/usr/local/cpanel/3rdparty/bin/php-cgi
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/bin/phpize
/usr/local/cpanel/3rdparty/php/56/bin/php
/usr/local/cpanel/3rdparty/php/56/bin/php-cgi
/usr/local/cpanel/3rdparty/php/56/bin/php-config
/usr/local/cpanel/3rdparty/php/56/bin/phpize
/usr/local/cpanel/3rdparty/php/56/sbin/php-fpm
/usr/local/cpanel/bin/php-wrapper


So Im not sure how should I switch from my actual php version:



# php -v


ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.5.38 (cli) (built: Nov 13 2018 20:06:25)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies



to 7.0 ?










share|improve this question























  • What is your “cloud VPS?” Your file listing seems to suggest CPanel is installed. Is this a shared hosting environment? CPanel customizes the environment. You should use CPanel to change your PHP versions according to what the hosting provider supports. /usr/bin/php is probably a symlink to whatever version is active.

    – Appleoddity
    Dec 27 '18 at 5:57














0












0








0








I'm confused about my cloud VPS. With cat /proc/version I got:



Linux version 2.6.32-754.6.3.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Tue Oct 9 17:27:49 UTC 2018


So, which distro do I have? Red Hat, Centos?



I need to switch the default php version in CLI and Apache.



I got this right now:



# locate bin/php

/opt/cpanel/ea-php54/root/usr/bin/php
/opt/cpanel/ea-php54/root/usr/bin/php-cgi
/opt/cpanel/ea-php54/root/usr/bin/php-config
/opt/cpanel/ea-php54/root/usr/bin/phpize
/opt/cpanel/ea-php54/root/usr/sbin/php-fpm
/opt/cpanel/ea-php55/root/usr/bin/php
/opt/cpanel/ea-php55/root/usr/bin/php-cgi
/opt/cpanel/ea-php55/root/usr/bin/php-config
/opt/cpanel/ea-php55/root/usr/bin/phpize
/opt/cpanel/ea-php55/root/usr/sbin/php-fpm
/opt/cpanel/ea-php56/root/usr/bin/php
/opt/cpanel/ea-php56/root/usr/bin/php-cgi
/opt/cpanel/ea-php56/root/usr/bin/php-config
/opt/cpanel/ea-php56/root/usr/bin/phpize
/opt/cpanel/ea-php56/root/usr/sbin/php-fpm
/opt/cpanel/ea-php70/root/usr/bin/php
/opt/cpanel/ea-php70/root/usr/bin/php-cgi
/opt/cpanel/ea-php70/root/usr/bin/php-config
/opt/cpanel/ea-php70/root/usr/bin/phpize
/opt/cpanel/ea-php70/root/usr/sbin/php-fpm
/usr/bin/php
/usr/bin/php-cgi
/usr/local/bin/php
/usr/local/cpanel/3rdparty/bin/php
/usr/local/cpanel/3rdparty/bin/php-cgi
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/bin/phpize
/usr/local/cpanel/3rdparty/php/56/bin/php
/usr/local/cpanel/3rdparty/php/56/bin/php-cgi
/usr/local/cpanel/3rdparty/php/56/bin/php-config
/usr/local/cpanel/3rdparty/php/56/bin/phpize
/usr/local/cpanel/3rdparty/php/56/sbin/php-fpm
/usr/local/cpanel/bin/php-wrapper


So Im not sure how should I switch from my actual php version:



# php -v


ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.5.38 (cli) (built: Nov 13 2018 20:06:25)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies



to 7.0 ?










share|improve this question














I'm confused about my cloud VPS. With cat /proc/version I got:



Linux version 2.6.32-754.6.3.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Tue Oct 9 17:27:49 UTC 2018


So, which distro do I have? Red Hat, Centos?



I need to switch the default php version in CLI and Apache.



I got this right now:



# locate bin/php

/opt/cpanel/ea-php54/root/usr/bin/php
/opt/cpanel/ea-php54/root/usr/bin/php-cgi
/opt/cpanel/ea-php54/root/usr/bin/php-config
/opt/cpanel/ea-php54/root/usr/bin/phpize
/opt/cpanel/ea-php54/root/usr/sbin/php-fpm
/opt/cpanel/ea-php55/root/usr/bin/php
/opt/cpanel/ea-php55/root/usr/bin/php-cgi
/opt/cpanel/ea-php55/root/usr/bin/php-config
/opt/cpanel/ea-php55/root/usr/bin/phpize
/opt/cpanel/ea-php55/root/usr/sbin/php-fpm
/opt/cpanel/ea-php56/root/usr/bin/php
/opt/cpanel/ea-php56/root/usr/bin/php-cgi
/opt/cpanel/ea-php56/root/usr/bin/php-config
/opt/cpanel/ea-php56/root/usr/bin/phpize
/opt/cpanel/ea-php56/root/usr/sbin/php-fpm
/opt/cpanel/ea-php70/root/usr/bin/php
/opt/cpanel/ea-php70/root/usr/bin/php-cgi
/opt/cpanel/ea-php70/root/usr/bin/php-config
/opt/cpanel/ea-php70/root/usr/bin/phpize
/opt/cpanel/ea-php70/root/usr/sbin/php-fpm
/usr/bin/php
/usr/bin/php-cgi
/usr/local/bin/php
/usr/local/cpanel/3rdparty/bin/php
/usr/local/cpanel/3rdparty/bin/php-cgi
/usr/local/cpanel/3rdparty/bin/php-config
/usr/local/cpanel/3rdparty/bin/phpize
/usr/local/cpanel/3rdparty/php/56/bin/php
/usr/local/cpanel/3rdparty/php/56/bin/php-cgi
/usr/local/cpanel/3rdparty/php/56/bin/php-config
/usr/local/cpanel/3rdparty/php/56/bin/phpize
/usr/local/cpanel/3rdparty/php/56/sbin/php-fpm
/usr/local/cpanel/bin/php-wrapper


So Im not sure how should I switch from my actual php version:



# php -v


ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.5.38 (cli) (built: Nov 13 2018 20:06:25)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies



to 7.0 ?







centos php redhat-enterprise-linux






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 27 '18 at 0:36









pmirndpmirnd

1063




1063













  • What is your “cloud VPS?” Your file listing seems to suggest CPanel is installed. Is this a shared hosting environment? CPanel customizes the environment. You should use CPanel to change your PHP versions according to what the hosting provider supports. /usr/bin/php is probably a symlink to whatever version is active.

    – Appleoddity
    Dec 27 '18 at 5:57



















  • What is your “cloud VPS?” Your file listing seems to suggest CPanel is installed. Is this a shared hosting environment? CPanel customizes the environment. You should use CPanel to change your PHP versions according to what the hosting provider supports. /usr/bin/php is probably a symlink to whatever version is active.

    – Appleoddity
    Dec 27 '18 at 5:57

















What is your “cloud VPS?” Your file listing seems to suggest CPanel is installed. Is this a shared hosting environment? CPanel customizes the environment. You should use CPanel to change your PHP versions according to what the hosting provider supports. /usr/bin/php is probably a symlink to whatever version is active.

– Appleoddity
Dec 27 '18 at 5:57





What is your “cloud VPS?” Your file listing seems to suggest CPanel is installed. Is this a shared hosting environment? CPanel customizes the environment. You should use CPanel to change your PHP versions according to what the hosting provider supports. /usr/bin/php is probably a symlink to whatever version is active.

– Appleoddity
Dec 27 '18 at 5:57










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387978%2fswitch-php-version-on-cloud-redhat-centos%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387978%2fswitch-php-version-on-cloud-redhat-centos%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa