PHP 7.3 with apcu and redis on xu4?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
rncwnd
Posts: 14
Joined: Thu Jun 01, 2017 3:06 pm
Location: Germany

PHP 7.3 with apcu and redis on xu4?

Post by rncwnd »

Hi,

I have Nextcloud 15.0.7 running on my xu4.
During DietPi update 6.23.3 I got error messages regarding php7.3-apcu and php7.3-redis not having an installation candidate.

Did anyone manage to get Nextcloud running with php 7.3 and redis and apcu on DietPi 6.23.3 for xu4?

Edit:
Oh boy, I found out that php7.3-fpm and php7.3-cli are also not installed, and could not be installed due to unmet dependencies...
I should have waited, but there where no warnings. :cry:
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: PHP 7.3 with apcu and redis on xu4?

Post by baz123 »

I noted on the release tweet that 7.3 was being installed. I need the Dev package but again it is not available.

I think this was a daft decision. Move to 7.2, sure but 7.3 is overreaching and just because all the dietpi installed packages work is not a good enough reason IMHO.

For now, most of my systems are stuck on the version they are on until either, this is rolled back or an option included to use 7.2.

Really disappointed.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: PHP 7.3 with apcu and redis on xu4?

Post by MichaIng »

Hey guys,
actually it is not about the PHP version (7.2 or 7.3) but about how the related package repository is accessed/implemented. The same issues would occur for PHP7.2 as well.

Could you please paste:
apt policy php7.3-fpm

And could you also paste the exact output when trying to install it? (So which dependency is missing exactly)
apt install php7.3-fpm
i.balabozov
Posts: 2
Joined: Sat May 18, 2019 6:31 pm
Contact:

Re: PHP 7.3 with apcu and redis on xu4?

Post by i.balabozov »

Hi,

I successfully installed Nextcloud 16 with Apache2 web server on DietPi 6.23 on my Odroid XU4.

The full description can be found in my web page: https://itechbg.net/install-nextcloud- ... linux-os/

After that Nextcloud 16.01 was realized and without any issue I updated Nextcloud from the administration page of the app.

After that the DietPi also was updated to 6.24 and also without any problems.


Best regards,
I. Balabozov
Last edited by i.balabozov on Tue May 21, 2019 7:32 am, edited 1 time in total.
rncwnd
Posts: 14
Joined: Thu Jun 01, 2017 3:06 pm
Location: Germany

Re: PHP 7.3 with apcu and redis on xu4?

Post by rncwnd »

MichaIng wrote: Thu May 16, 2019 2:15 am Hey guys,
actually it is not about the PHP version (7.2 or 7.3) but about how the related package repository is accessed/implemented. The same issues would occur for PHP7.2 as well.

Could you please paste:
apt policy php7.3-fpm

And could you also paste the exact output when trying to install it? (So which dependency is missing exactly)
apt install php7.3-fpm
Hi,

in the meantime I worked around the problem by creating an apt preference:

Code: Select all

root@odroid:/etc/apt/preferences.d# cat dietpi-php7.3.pref
Package: libpcre2-8-0 libzip4 php*
Pin: origin packages.sury.org
Pin-Priority: 900
The versions of the sury packages look a bit odd, but it works now.
Before changing the pin priority, the sury packages had lower priority than the ones from debian testing.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: PHP 7.3 with apcu and redis on xu4?

Post by MichaIng »

@rncwnd
DietPi v6.24.1 should include that. It adds some more packages to higher priority to avoid all known dependencies. This is what is done during the patch (NB: On ARMv6 systems only, all others don't require it!!)

Code: Select all

echo -e '# Allow to install PHP7.3 dependencies and meta packages from Buster
# - Lighttpd must be pulled as well from Buster since the Stretch version does not support Buster libssl1.1 (1.1.1)
Package: php libapache2-mod-php php-* libssl* libc6* libc-* libgssapi-krb5-2 libpcre2-8-0 libk5crypto3 libkrb5-3 libkrb5support0 locales libzip4 curl lighttpd
Pin: release n=buster\nPin-Priority: 501\n
# Pin down all other Buster packages to only allow upgrades of already installed ones via: "apt upgrade"
Package: *\nPin: release n=buster\nPin-Priority: 100' > /etc/apt/preferences.d/dietpi-php
rncwnd
Posts: 14
Joined: Thu Jun 01, 2017 3:06 pm
Location: Germany

Re: PHP 7.3 with apcu and redis on xu4?

Post by rncwnd »

Thx!
And good to know that it's fixed.
Will do the update later.
Post Reply