Suggestions for upgrade PHP7.4-32bit to PHP 8.2-64bit

,

Question: How to go about upgrade PHP 7.4 to PHP 8.2, and make sure every works as it does.

Details:

Nextcloud version : 25.0.3
Operating system and version NextcloudPi latest on Raspberry
Apache or nginx version Apache/2.4.54 (Raspbian)
PHP version (eg, 7.4): 7.4 32 bit

The issue you are facing:
System report PHP 7.4 deprecated in NC 26.
So need to upgrade PHP to 8.2 + all modules

[PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
intl
json
ldap
libsmbclient
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
smbclient
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Upgrade NextcloudPi from 24 to 25 with webupdater

Cheers

I personally wouldn’t upgrade to PHP8.2 right now as no released version of NC would work with it.

Apart from that is upgrading PHP no real NC-“problem”…

As you seem to be running ncp I’d recommend to wait until the maintainers of that project would take care about upgrading phpversion as well. They will do. And it’ll be a smooth process, that’s for sure.

Are you really on the latest OS / Bullseye version?
Ncp should have upgraded to php 8.1 by now.
Or it is hold back because of 32bit. Not sure at the moment

redferring to the title of this thread the upgrade should go from 32bit to 64bit as well… so that’s not possible without some additonal work.

pls check the ncp manual for how to do that best.

1 Like

Yes, latest Bullseye Dist Upgrade.

Ill look into 8.1.
PHP versions can run alongside I guess

Manual is there, but to much info to figure out what to do

I don’t get it… according to Release Update PHP to version 8.1 and Nextcloud to version 24 · nextcloud/nextcloudpi · GitHub, PHP should already have been upgraded to v8.1 when upgrading to NCP v1.50 / Nextcloud v24.

For some reason my NCP instance is still running PHP7.4 after upgrading to NCP v1.51 / Nextcloud 25. Manual installation of PHP8.1 doesnt work either, which is correct since it is not included in the official bullseye repositories?!

Indeed. Guess same issue.
I could install PHP 8.1 alongside and when all works remove PHP 7.4

Question

  • What PHP repository is safe and recommended ?

Guess this is the way:

I’d rather not add a third-party repo to my sources list. Not because I don’t trust it, but I can’t imagine NextCloudPi requiring a non-official repo without mentioning it anywhere.

My NCP instance was broken after the 1.51 upgrade( PHP service down, “segmentation fault” errors) which I coud somehow fix by reinstalling php7.4 and libcurl4. Since then it runs fine, even quite a bit faster than before, for unknown reasons…

So i’ll leave it as is for now…

Finally decided to rebuild the setup with the 64 bit version and restore all data.
Thanks for all replies !
Cheers