Author Topic: Install PHP 8.X - PHP Version Switcher  (Read 4666 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Install PHP 8.X - PHP Version Switcher
« on: September 25, 2022, 01:11:56 PM »
I am updating my PHP to version 8.0.23 by option PHP Version Switcher who has in CWP panel.

It does the entire installation process, it shows build complete in the log, but it still doesn't leave the 7.4.30 version that I installed when I first installed the CWP panel.

Follows complete log that shows when you are doing the installation of PHP.

https://gist.github.com/crashzk/3aab8d8bbf94e99e3e8df8abbb558827

Offline
*****
Re: Install PHP 8.X - PHP Version Switcher
« Reply #1 on: September 25, 2022, 10:57:07 PM »
Everyone has skipped over PHP 8.0.x for 8.1.x, including ionCude & WHMCS.

You can follow this to get PHP 8.1.x switched in CWP:
https://www.uxlinux.com/install-php-8-1-latest-version-in-cwp-control-panel/

Or if, for some odd reason you still want 8.0x:
https://www.uxlinux.com/install-php-8-latest-version-in-cwp-control-panel/

Offline
*
Re: Install PHP 8.X - PHP Version Switcher
« Reply #2 on: November 28, 2022, 01:47:08 PM »
PHP 7.4 is EOL tomorrow.

Even though PHP 8.1 is a selectable option in CWP's PHP Switcher, it still fails to "switch" from PHP 7.4 to PHP 8.1. The process runs and shows it completed but PHP 7.4 remains.

Is this still the only method of "switching" to PHP 8.1?

UPDATE: After running PHP Switcher a second time, it did update to PHP 8.1. Not sure why it did not complete on the first go around. Didn't see any errors in the rebuild log. So it would seem that the workaround linked above is no longer necessary; just use the CWP Admin->PHP Settings->PHP Version Switcher
« Last Edit: November 28, 2022, 01:56:35 PM by jeffshead »

Offline
*
Re: Install PHP 8.X - PHP Version Switcher
« Reply #3 on: November 28, 2022, 08:40:04 PM »
I tried both ways, both unsuccessful.

I believe that it is actually due to the specifications of my VPS, it currently has 1GB RAM, I will be increasing it to 2GB RAM and testing again.

Offline
*****
Re: Install PHP 8.X - PHP Version Switcher
« Reply #4 on: March 05, 2023, 04:25:34 AM »
...it currently has 1GB RAM, I will be increasing it to 2GB RAM and testing again.
Ouch! And I thought my 16GB server was tight by modern standards! But several of my CentOS VMs only have 4-5GB allocated to them, so it is doable to provision them thin.