Page 1 of 1

Upgrade php version from 7.4 to 8.1

Posted: Tue 4. Apr 2023, 13:47
by boka003
Hello there,


How can I upgrade PHP version from 7.4 to 8.1 at KeyHelp 23.0 with Ubuntu 20.04.6 LTS?
I need it on this website; https://webinfo.me/update

Regards

Re: Upgrade php version from 7.4 to 8.1

Posted: Tue 4. Apr 2023, 13:49
by Alexander
Hello,

1) Install the PHP Interpreter: Configuration -> PHP-Interpreters

2) Switch the PHP Interpreter for the Domain: Domains -> Edit Domain -> PHP-Interpreter

Re: Upgrade php version from 7.4 to 8.1

Posted: Wed 5. Apr 2023, 08:15
by boka003
Hello,

Sorry i forgot to say that server use amd64: https://prnt.sc/-XpML29E4n57

I will need to set 8.1 as the default PHP version.
So, I have installed PHP 8.1 direct on the server, but it is not showing inside key help.

Re: Upgrade php version from 7.4 to 8.1

Posted: Wed 5. Apr 2023, 10:00
by Alexander
amd64
amd64 or arm64?

Sorry i forgot to say that server use amd64: https://prnt.sc/-XpML29E4n57
How did you install those PHP versions?

So, I have installed PHP 8.1 direct on the server, but it is not showing inside key help.
How did you do that?


By the way you can also upgrade to Ubuntu 22 and will have PHP 8.1 by default.

Re: Upgrade php version from 7.4 to 8.1

Posted: Thu 6. Apr 2023, 10:31
by boka003
Sorry, it is arm64.

How did you install those PHP versions?
I have installed 8.1 using this tutorial: https://medium.com/@laraveltuts/how-to- ... 18e7565c41
By the way you can also upgrade to Ubuntu 22 and will have PHP 8.1 by default.
With the upgrade, we will not use any data ?
I can see that Oracle support 22.04 https://forums.oracle.com/ords/apexds/p ... 4-lts-6896



Regards

Re: Upgrade php version from 7.4 to 8.1

Posted: Thu 6. Apr 2023, 13:21
by boka003

Code: Select all


ubuntu@ch1:~$ php -v
PHP 8.2.4 (cli) (built: Mar 16 2023 14:34:24) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.4, Copyright (c), by Zend Technologies
ubuntu@ch1:~$ 
https://prnt.sc/0huGXpS2Ax2U



Here is the difference between server and key help.
How can I update keyhelp too?

Re: Upgrade php version from 7.4 to 8.1

Posted: Thu 6. Apr 2023, 14:44
by Florian
Hello,

please explain in detail what yo have done. Did you do a dist upgrade?

Most important thing: You must not !!!!! change the default PHP version of the OS

Re: Upgrade php version from 7.4 to 8.1

Posted: Thu 6. Apr 2023, 15:05
by Alexander
boka003 wrote: Thu 6. Apr 2023, 10:31 Sorry, it is arm64.
The additional PHP interpreters provided by KeyHelp do not support arm64 systems.