nextcloud and php versions

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

nextcloud and php versions

Postby loki279 » Wed Jan 18, 2023 12:05 pm

Hello,

I updated my odroid server yesterday, pulling php 8.2 and a new nextcloud version. php 8.1 is still installed as php-legacy as nextcloud 25 cannot run on php 8.2. Still the server is not running any longer, complaining nextcloud needs a php version before 8.2.
How can I tell nextcloud to use the installed php-legacy version?

Thanks! Miro
loki279
 
Posts: 56
Joined: Tue Mar 07, 2017 7:59 am

Re: nextcloud and php versions

Postby wrength » Wed Jan 18, 2023 4:51 pm

Depends on how you are running PHP. If you're using PHP-FPM, you should probably install the new php-legacy-fpm package and use it instead of php-fpm. Its config is stored under /etc/php-legacy, as all php-legacy stuff seems to be, so you might have to copy the needed configuration from under /etc/php to there. You can run both php-fpm and php-legacy-fpm at the same time if you need to, but obviously you can't use the same port or .sock file for both services at the same time, so check that those don't overlap in the config (see the listen setting in the files in the php-fpm.d directory).

If you're using mod_php with Apache, you'll need php-legacy-apache instead. It's been a long time since I've used mod_php, so I can't comment much on specifics, but you'll probably want to grep all files under /etc/httpd for any mentions of php and edit as needed.
wrength
 
Posts: 2
Joined: Mon Jan 16, 2023 4:00 pm

Re: nextcloud and php versions

Postby loki279 » Thu Jan 19, 2023 1:44 pm

Thanks! I have it running again, also needed a look on the arch nextcloud wiki page.. There are some files where the path /etc/php/ neede to be changed to /etc/php-legacy.
loki279
 
Posts: 56
Joined: Tue Mar 07, 2017 7:59 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 26 guests