Switch php version on Cloud (Redhat? Centos?)

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

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 ?

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

tuteehub community

Join Our Community Today

Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.

tuteehub community