Nextcloud OPcache

Hi.
What php.ini should be edited, since there are several php.ini files in system?

Nextcloud since upgrade v18>v19 shows following info:
…
There are some warnings regarding your setup.
The PHP OPcache is not properly configured. For better performance it is recommended to use the following settings in the php.ini:
opcache.enable=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
…
Additionally shows also this:
…
This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.
bcmath
gmp
…
What is the command to install those missing PHP modules?

Tnx!

Br,B

Hi,

many thanks for your report. Let me assume you have installed PHP7.3. There you could have a look if the following file exist.

/etc/php/7.3/mods-available/dietpi-nextcloud.ini

it should contain the setting for opcache

root@DietPi3:~# cat /etc/php/7.3/mods-available/dietpi-nextcloud.ini
; Nextcloud PHP settings
; priority=98
apc.enable_cli=1
opcache.enable=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
root@DietPi3:~#

Installation of recommended packages could be done as follow

apt update 
apt install php7.3-bcmath php7.3-gmp php7.3-imagick

once done restart all services

dietpi-services restart

bcmath and gmp are btw only required for password-less key authentication. I’d actually like so see this information instead of stating a bid misleading that performance and compatibility are limited when those “highly recommended” packages are not installed, while nearly no-one enables key authentication, especially since password authentication is always available as fallback, hence there is no security gain: https://github.com/nextcloud/server/issues/22849

imagick is only used by the theming app and there are security concerns about using it, although I lack the understanding: https://github.com/nextcloud/server/issues/13099

Just as an explanation why we don’t pre-install those automatically :wink:.

root@DietPi:/# locate dietpi-nextcloud.ini
/etc/php/7.3/cgi/conf.d/99-dietpi-nextcloud.ini
/etc/php/7.3/cli/conf.d/99-dietpi-nextcloud.ini
/etc/php/7.3/fpm/conf.d/99-dietpi-nextcloud.ini
/etc/php/7.3/mods-available/dietpi-nextcloud.ini

those files already contained the setting for opcache.

Warning remains… :frowning:

Any other config in place which sets OPcache settings with higher priority?

grep -r opcache /etc/php/7.3/

grep found several ini’s:
/etc/php/7.3/cgi/php.ini
/etc/php/7.3/mods-available/opcache.ini
/etc/php/7.3/mods-available/dietpi-nextcloud.ini
/etc/php/7.3/mods-available/dietpi.ini
/etc/php/7.3/cli/php.ini
/etc/php/7.3/fpm/php.ini

and also grep -r opcache /etc/php/7.4/ found the same ones in /etc/php/7.4/ folder. Wich one nextcloud service uses?

I don’t know the priorities, but in all opcache setting can be adjusted…

Should we try to adjust all of them or there is a better way to understand this setting?

It should use PHP7.3 on Stretch and Buster and PHP7.4 only on Bullseye. Which Debian version is it and RPi 1 or RPi Zero or a different machine?

echo $G_HW_MODEL_NAME $G_DISTRO_NAME

And which web server, Nginx or Lighttpd?

it’s
RPi 3 Model B (armv7l) stretch with Lighttpd

Ah okay Stretch. The 7.4 dir structure comes from APCu module then, but the php.ini files should not exist.

Lets see what the webserver uses: grep -r sock /etc/lighttpd/
And then what is installed: dpkg -l | grep php

grep -r sock /etc/lighttpd/
/etc/lighttpd/conf-available/15-fastcgi-php.conf: “socket” => “/run/php/php7.3-fpm.sock”,
/etc/lighttpd/conf-available/50-dietpi-https.conf:$SERVER[“socket”] == “:443” {
/etc/lighttpd/conf-available/10-ssl.conf:$SERVER[“socket”] == “0.0.0.0:443” {

dpkg -l | grep php
ii php-apcu 5.1.18+4.0.11-1+0~20200518.14+debian9~1.gbpa99079 armhf APC User Cache for PHP
ii php-bcmath 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all Bcmath module for PHP [default]
ii php-cgi 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all server-side, HTML-embedded scripting language (CGI binary) (default)
ii php-common 2:76+0~20200511.26+debian9~1.gbpc9beb6 all Common files for PHP packages
ii php-curl 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all CURL module for PHP [default]
ii php-fpm 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
ii php-gd 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all GD module for PHP [default]
ii php-gmp 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all GMP module for PHP [default]
ii php-igbinary 3.1.2+2.0.8-1+0~20200518.16+debian9~1.gbp1a098b armhf igbinary PHP serializer
ii php-intl 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all Internationalisation module for PHP [default]
ii php-mbstring 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all MBSTRING module for PHP [default]
ii php-mysql 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all MySQL module for PHP [default]
ii php-redis 5.3.1+4.3.0-1+0~20200708.25+debian9~1.gbp800f71 armhf PHP extension for interfacing with Redis
ii php-sqlite3 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all SQLite3 module for PHP [default]
ii php-xml 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php-zip 2:7.4+76+0~20200511.26+debian9~1.gbpc9beb6 all Zip module for PHP [default]
ii php7.3-bcmath 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf Bcmath module for PHP
ii php7.3-cgi 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf server-side, HTML-embedded scripting language (CGI binary)
ii php7.3-cli 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf command-line interpreter for the PHP scripting language
ii php7.3-common 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf documentation, examples and common module for PHP
ii php7.3-curl 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf CURL module for PHP
ii php7.3-fpm 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php7.3-gd 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf GD module for PHP
ii php7.3-gmp 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf GMP module for PHP
ii php7.3-intl 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf Internationalisation module for PHP
ii php7.3-json 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf JSON module for PHP
ii php7.3-mbstring 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf MBSTRING module for PHP
ii php7.3-mysql 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf MySQL module for PHP
ii php7.3-opcache 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf Zend OpCache module for PHP
ii php7.3-readline 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf readline module for PHP
ii php7.3-sqlite3 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf SQLite3 module for PHP
ii php7.3-xml 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii php7.3-zip 7.3.22-1+0~20200909.67+debian9~1.gbpdd7b72 armhf Zip module for PHP
ii php7.4-bcmath 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf Bcmath module for PHP
ii php7.4-cgi 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf server-side, HTML-embedded scripting language (CGI binary)
ii php7.4-cli 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf command-line interpreter for the PHP scripting language
ii php7.4-common 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf documentation, examples and common module for PHP
ii php7.4-curl 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf CURL module for PHP
ii php7.4-fpm 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php7.4-gd 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf GD module for PHP
ii php7.4-gmp 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf GMP module for PHP
ii php7.4-intl 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf Internationalisation module for PHP
ii php7.4-json 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf JSON module for PHP
ii php7.4-mbstring 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf MBSTRING module for PHP
ii php7.4-mysql 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf MySQL module for PHP
ii php7.4-opcache 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf Zend OpCache module for PHP
ii php7.4-readline 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf readline module for PHP
ii php7.4-sqlite3 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf SQLite3 module for PHP
ii php7.4-xml 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf DOM, SimpleXML, XML, and XSL module for PHP
ii php7.4-zip 7.4.10-1+0~20200909.25+debian9~1.gbpe666e1 armhf Zip module for PHP

Okay PHP7.3 is used but PHP7.4 is installed as well. I can imagine that Nextcloud might do some checks via PHP CLI and that the php command currently links to 7.4 so the results are wrong.

You should purge all php7.4-* packages and see ig that helps.

Php7.4 is used only by lighttpd or some other service,?
Will I damage the system if I purge php7.4?

No, PHP7.4 is used by nothing (Lighttpd uses PHP7.3) and everything can easily use PHP7.3 instead, so you cannot break something but instead I bet your RAM usage will be significantly lower as currently there are two PHP-FPM servers running :wink:.

But just to be sure, when you do apt purge ‘php7.4-*’ have a look at the purged package list before confirming. It should be nothing else than php7.4-* and the php-* meta packages.

Great!

I will purge php7.4 and report.

Tnx!

probably good to perform a dietpi-backup before. Just in case :wink:

Always :wink:

apt purge ‘php7.4-’
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘php7.4-snmp-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-bz2’ for glob ‘php7.4-’
Note, selecting ‘php7.4-gd’ for glob 'php7.4-
’
Note, selecting ‘php7.4-json-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-cgi’ for glob 'php7.4-
’
Note, selecting ‘php7.4-cli’ for glob ‘php7.4-’
Note, selecting ‘php7.4-pdo-odbc’ for glob 'php7.4-
’
Note, selecting ‘php7.4-dba’ for glob ‘php7.4-’
Note, selecting ‘php7.4-dbg’ for glob 'php7.4-
’
Note, selecting ‘php7.4-dev’ for glob ‘php7.4-’
Note, selecting ‘php7.4-bz2-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-dom’ for glob ‘php7.4-’
Note, selecting ‘php7.4-dba-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-tidy’ for glob ‘php7.4-’
Note, selecting ‘php7.4-odbc-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-bcmath-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-ffi’ for glob 'php7.4-
’
Note, selecting ‘php7.4-fpm’ for glob ‘php7.4-’
Note, selecting ‘php7.4-ftp’ for glob 'php7.4-
’
Note, selecting ‘php7.4-xmlreader’ for glob ‘php7.4-’
Note, selecting ‘php7.4-gmp’ for glob 'php7.4-
’
Note, selecting ‘php7.4-mysqli’ for glob ‘php7.4-’
Note, selecting ‘php7.4-imagick’ for glob 'php7.4-
’
Note, selecting ‘php7.4-sybase’ for glob ‘php7.4-’
Note, selecting ‘php7.4-sysvmsg’ for glob 'php7.4-
’
Note, selecting ‘php7.4-json’ for glob ‘php7.4-’
Note, selecting ‘php7.4-xml-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-gd-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-phar’ for glob 'php7.4-
’
Note, selecting ‘php7.4-tokenizer’ for glob ‘php7.4-’
Note, selecting ‘php7.4-igbinary’ for glob 'php7.4-
’
Note, selecting ‘php7.4-pgsql’ for glob ‘php7.4-’
Note, selecting ‘php7.4-fpm-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-curl’ for glob ‘php7.4-’
Note, selecting ‘php7.4-phpdbg’ for glob 'php7.4-
’
Note, selecting ‘php7.4-interbase’ for glob ‘php7.4-’
Note, selecting ‘php7.4-shmop’ for glob 'php7.4-
’
Note, selecting ‘php7.4-mbstring-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-ldap’ for glob 'php7.4-
’
Note, selecting ‘php7.4-curl-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-pdo-mysql’ for glob 'php7.4-
’
Note, selecting ‘php7.4-sysvsem’ for glob ‘php7.4-’
Note, selecting ‘php7.4-sysvshm’ for glob 'php7.4-
’
Note, selecting ‘php7.4-phpdbg-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-uploadprogress’ for glob 'php7.4-
’
Note, selecting ‘php7.4-pdo’ for glob ‘php7.4-’
Note, selecting ‘php7.4-imap’ for glob 'php7.4-
’
Note, selecting ‘php7.4-sockets’ for glob ‘php7.4-’
Note, selecting ‘php7.4-ctype’ for glob 'php7.4-
’
Note, selecting ‘php7.4-calendar’ for glob ‘php7.4-’
Note, selecting ‘php7.4-intl’ for glob 'php7.4-
’
Note, selecting ‘php7.4-pspell-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-fileinfo’ for glob 'php7.4-
’
Note, selecting ‘php7.4-sqlite3’ for glob ‘php7.4-’
Note, selecting ‘php7.4-common-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-odbc’ for glob ‘php7.4-’
Note, selecting ‘php7.4-pdo-dblib’ for glob 'php7.4-
’
Note, selecting ‘php7.4-xmlrpc’ for glob ‘php7.4-’
Note, selecting ‘php7.4-redis’ for glob 'php7.4-
’
Note, selecting ‘php7.4-tidy-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-yaml’ for glob 'php7.4-
’
Note, selecting ‘php7.4-opcache’ for glob ‘php7.4-’
Note, selecting ‘php7.4-xmlrpc-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-snmp’ for glob ‘php7.4-’
Note, selecting ‘php7.4-soap’ for glob 'php7.4-
’
Note, selecting ‘php7.4-xml’ for glob ‘php7.4-’
Note, selecting ‘php7.4-xsl’ for glob 'php7.4-
’
Note, selecting ‘php7.4-yac’ for glob ‘php7.4-’
Note, selecting ‘php7.4-zip-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-zip’ for glob ‘php7.4-’
Note, selecting ‘php7.4-msgpack’ for glob 'php7.4-
’
Note, selecting ‘php7.4-simplexml’ for glob ‘php7.4-’
Note, selecting ‘php7.4-gearman’ for glob 'php7.4-
’
Note, selecting ‘php7.4-pspell’ for glob ‘php7.4-’
Note, selecting ‘php7.4-mysql’ for glob 'php7.4-
’
Note, selecting ‘php7.4-recode’ for glob ‘php7.4-’
Note, selecting ‘php7.4-intl-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-gmp-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-mbstring’ for glob 'php7.4-
’
Note, selecting ‘php7.4-pgsql-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-readline’ for glob 'php7.4-
’
Note, selecting ‘php7.4-amqp’ for glob ‘php7.4-’
Note, selecting ‘php7.4-pdo-firebird’ for glob 'php7.4-
’
Note, selecting ‘php7.4-imap-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-apcu’ for glob 'php7.4-
’
Note, selecting ‘php7.4-exif’ for glob ‘php7.4-’
Note, selecting ‘php7.4-xdebug’ for glob 'php7.4-
’
Note, selecting ‘php7.4-cgi-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-memcached’ for glob 'php7.4-
’
Note, selecting ‘php7.4-mysqlnd’ for glob ‘php7.4-’
Note, selecting ‘php7.4-mysql-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-sqlite3-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-pdo-sqlite’ for glob 'php7.4-
’
Note, selecting ‘php7.4-ldap-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-common’ for glob 'php7.4-
’
Note, selecting ‘php7.4-enchant-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-xhprof’ for glob 'php7.4-
’
Note, selecting ‘php7.4-bcmath’ for glob ‘php7.4-’
Note, selecting ‘php7.4-soap-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-mailparse’ for glob ‘php7.4-’
Note, selecting ‘php7.4-readline-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-pdo-pgsql’ for glob ‘php7.4-’
Note, selecting ‘php7.4-posix’ for glob 'php7.4-
’
Note, selecting ‘php7.4-iconv’ for glob ‘php7.4-’
Note, selecting ‘php7.4-sybase-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-cli-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-enchant’ for glob 'php7.4-
’
Note, selecting ‘php7.4-phalcon4’ for glob ‘php7.4-’
Note, selecting ‘php7.4-opcache-dbgsym’ for glob 'php7.4-
’
Note, selecting ‘php7.4-interbase-dbgsym’ for glob ‘php7.4-’
Note, selecting ‘php7.4-gettext’ for glob 'php7.4-
’
Note, selecting ‘php7.4-xmlwriter’ for glob 'php7.4-’
Package ‘php7.4-dbg’ is not installed, so not removed
Note, selecting ‘php-amqp’ instead of ‘php7.4-amqp’
Note, selecting ‘php-apcu’ instead of ‘php7.4-apcu’
Note, selecting ‘php-gearman’ instead of ‘php7.4-gearman’
Note, selecting ‘php-igbinary’ instead of ‘php7.4-igbinary’
Note, selecting ‘php-imagick’ instead of ‘php7.4-imagick’
Note, selecting ‘php-mailparse’ instead of ‘php7.4-mailparse’
Note, selecting ‘php-memcached’ instead of ‘php7.4-memcached’
Note, selecting ‘php-msgpack’ instead of ‘php7.4-msgpack’
Note, selecting ‘php-phalcon4’ instead of ‘php7.4-phalcon4’
Package ‘php7.4-recode’ is not installed, so not removed
Note, selecting ‘php-redis’ instead of ‘php7.4-redis’
Note, selecting ‘php-uploadprogress’ instead of ‘php7.4-uploadprogress’
Note, selecting ‘php-xdebug’ instead of ‘php7.4-xdebug’
Note, selecting ‘php-xhprof’ instead of ‘php7.4-xhprof’
Note, selecting ‘php-yac’ instead of ‘php7.4-yac’
Note, selecting ‘php-yaml’ instead of ‘php7.4-yaml’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-calendar’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-ctype’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-exif’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-ffi’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-fileinfo’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-ftp’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-gettext’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-iconv’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-pdo’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-phar’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-posix’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-shmop’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-sockets’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-sysvmsg’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-sysvsem’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-sysvshm’
Note, selecting ‘php7.4-common’ instead of ‘php7.4-tokenizer’
Note, selecting ‘php7.4-interbase’ instead of ‘php7.4-pdo-firebird’
Note, selecting ‘php7.4-mysql’ instead of ‘php7.4-mysqli’
Note, selecting ‘php7.4-mysql’ instead of ‘php7.4-mysqlnd’
Note, selecting ‘php7.4-mysql’ instead of ‘php7.4-pdo-mysql’
Note, selecting ‘php7.4-odbc’ instead of ‘php7.4-pdo-odbc’
Note, selecting ‘php7.4-pgsql’ instead of ‘php7.4-pdo-pgsql’
Note, selecting ‘php7.4-sqlite3’ instead of ‘php7.4-pdo-sqlite’
Note, selecting ‘php7.4-sybase’ instead of ‘php7.4-pdo-dblib’
Note, selecting ‘php7.4-xml’ instead of ‘php7.4-dom’
Note, selecting ‘php7.4-xml’ instead of ‘php7.4-simplexml’
Note, selecting ‘php7.4-xml’ instead of ‘php7.4-xmlreader’
Note, selecting ‘php7.4-xml’ instead of ‘php7.4-xmlwriter’
Package ‘php7.4-bcmath-dbgsym’ is not installed, so not removed
Package ‘php7.4-bz2’ is not installed, so not removed
Package ‘php7.4-bz2-dbgsym’ is not installed, so not removed
Package ‘php7.4-cgi-dbgsym’ is not installed, so not removed
Package ‘php7.4-cli-dbgsym’ is not installed, so not removed
Package ‘php7.4-common-dbgsym’ is not installed, so not removed
Package ‘php7.4-curl-dbgsym’ is not installed, so not removed
Package ‘php7.4-dba’ is not installed, so not removed
Package ‘php7.4-dba-dbgsym’ is not installed, so not removed
Package ‘php7.4-dev’ is not installed, so not removed
Package ‘php7.4-enchant’ is not installed, so not removed
Package ‘php7.4-enchant-dbgsym’ is not installed, so not removed
Package ‘php7.4-fpm-dbgsym’ is not installed, so not removed
Package ‘php7.4-gd-dbgsym’ is not installed, so not removed
Package ‘php7.4-gmp-dbgsym’ is not installed, so not removed
Package ‘php7.4-imap’ is not installed, so not removed
Package ‘php7.4-imap-dbgsym’ is not installed, so not removed
Package ‘php7.4-interbase’ is not installed, so not removed
Package ‘php7.4-interbase-dbgsym’ is not installed, so not removed
Package ‘php7.4-intl-dbgsym’ is not installed, so not removed
Package ‘php7.4-json-dbgsym’ is not installed, so not removed
Package ‘php7.4-ldap’ is not installed, so not removed
Package ‘php7.4-ldap-dbgsym’ is not installed, so not removed
Package ‘php7.4-mbstring-dbgsym’ is not installed, so not removed
Package ‘php7.4-mysql-dbgsym’ is not installed, so not removed
Package ‘php7.4-odbc’ is not installed, so not removed
Package ‘php7.4-odbc-dbgsym’ is not installed, so not removed
Package ‘php7.4-opcache-dbgsym’ is not installed, so not removed
Package ‘php7.4-pgsql’ is not installed, so not removed
Package ‘php7.4-pgsql-dbgsym’ is not installed, so not removed
Package ‘php7.4-phpdbg’ is not installed, so not removed
Package ‘php7.4-phpdbg-dbgsym’ is not installed, so not removed
Package ‘php7.4-pspell’ is not installed, so not removed
Package ‘php7.4-pspell-dbgsym’ is not installed, so not removed
Package ‘php7.4-readline-dbgsym’ is not installed, so not removed
Package ‘php7.4-snmp’ is not installed, so not removed
Package ‘php7.4-snmp-dbgsym’ is not installed, so not removed
Package ‘php7.4-soap’ is not installed, so not removed
Package ‘php7.4-soap-dbgsym’ is not installed, so not removed
Package ‘php7.4-sqlite3-dbgsym’ is not installed, so not removed
Package ‘php7.4-sybase’ is not installed, so not removed
Package ‘php7.4-sybase-dbgsym’ is not installed, so not removed
Package ‘php7.4-tidy’ is not installed, so not removed
Package ‘php7.4-tidy-dbgsym’ is not installed, so not removed
Package ‘php7.4-xml-dbgsym’ is not installed, so not removed
Package ‘php7.4-xmlrpc’ is not installed, so not removed
Package ‘php7.4-xmlrpc-dbgsym’ is not installed, so not removed
Package ‘php7.4-xsl’ is not installed, so not removed
Package ‘php7.4-zip-dbgsym’ is not installed, so not removed
The following packages will be REMOVED:
php-bcmath
php-cgi* php-curl* php-fpm* php-gd* php-gmp* php-intl* php-mbstring* php-mysql* php-sqlite3* php-xml*
php-zip* php7.4-bcmath* php7.4-cgi* php7.4-cli* php7.4-common* php7.4-curl* php7.4-fpm* php7.4-gd* php7.4-gmp*
php7.4-intl* php7.4-json* php7.4-mbstring* php7.4-mysql* php7.4-opcache* php7.4-readline* php7.4-sqlite3*
php7.4-xml* php7.4-zip*
0 upgraded, 0 newly installed, 29 to remove and 0 not upgraded.
After this operation, 20.5 MB disk space will be freed.
Do you want to continue? [Y/n]

Is it safe to continue? :thinking:

yes, should be fine. In worst case, you still have the backup :wink:

php7.4 is purged, but the warning in nextcloud remains…

File: /etc/php/7.3/mods-available/dietpi-nextcloud.ini contains:

; Nextcloud PHP settngs
; priority=99
apc.enable_cli=1
opcache.enable=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

:frowning:

Strange, is the mod actually enabled?

ls -Al /etc/php/7.3/fpm/conf.d/99-dietpi-nextcloud.ini
phpenmod dietpi-nextcloud
ls -Al /etc/php/7.3/fpm/conf.d/99-dietpi-nextcloud.ini