Nextcloud OPcache Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2348
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud OPcache

Post by MichaIng »

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.
User avatar
novitibo
Posts: 86
Joined: Mon Feb 29, 2016 5:11 pm

Re: Nextcloud OPcache

Post by novitibo »

Php7.4 is used only by lighttpd or some other service,?
Will I damage the system if I purge php7.4?
User avatar
MichaIng
Site Admin
Posts: 2348
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud OPcache

Post by MichaIng »

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 ;).

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.
User avatar
novitibo
Posts: 86
Joined: Mon Feb 29, 2016 5:11 pm

Re: Nextcloud OPcache

Post by novitibo »

Great!

I will purge php7.4 and report.

Tnx!
User avatar
Joulinar
Posts: 2335
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud OPcache

Post by Joulinar »

probably good to perform a dietpi-backup before. Just in case ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
novitibo
Posts: 86
Joined: Mon Feb 29, 2016 5:11 pm

Re: Nextcloud OPcache

Post by novitibo »

Joulinar wrote: Tue Sep 22, 2020 8:50 pm probably good to perform a dietpi-backup before. Just in case ;)
Always ;)
User avatar
novitibo
Posts: 86
Joined: Mon Feb 29, 2016 5:11 pm

Re: Nextcloud OPcache

Post by novitibo »

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? :?
User avatar
Joulinar
Posts: 2335
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud OPcache

Post by Joulinar »

yes, should be fine. In worst case, you still have the backup ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
novitibo
Posts: 86
Joined: Mon Feb 29, 2016 5:11 pm

Re: Nextcloud OPcache

Post by novitibo »

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

:(
User avatar
MichaIng
Site Admin
Posts: 2348
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud OPcache

Post by MichaIng »

Strange, is the mod actually enabled?

Code: Select all

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
Post Reply