Php7.3 error apcu not available

Hi Friends,
today I’ve upgraded my Debian 9 box to PHP7.3.
Following this upgrade NC 15.0.14 stopped working:

Internal Server Error

The server encountered an internal error and was unable to complete your request…

and NC log:

“message”:“OC\HintException: Memcache \OC\Memcache\APCu not available for local cache at /var/www/nextcloud/public_html/lib/private/Memcache/Factory.php#99”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.6.2git (Nextcloud)”,“version”:“15.0.14.1”}

[…]

e.php",“line”:654,“function”:“loadApps”,“class”:“OC_App”,“type”:“::”,“args”:[[“session”]]},{“file”:“/var/www/nextcloud/public_html/lib/base.php”,“line”:1068,“function”:“init”,“class”:“OC”,“type”:“::”,“args”:},{“file”:“/var/www/nextcloud/public_html/index.php”,“line”:40,“args”:[“/var/www/nextcloud/public_html/lib/base.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/public_html/lib/private/Memcache/Factory.php”,“Line”:99,“Hint”:“Is the matching PHP module installed and enabled?”,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0”,“version”:“15.0.14.1”}

To solve the problem need to install pecl via pecl.
But on Debian 9 pecl is buggy (…):

PHP Fatal error: Cannot use result of built-in function in write context in /usr/share/php/Archive/Tar.php on line 639

So need to solve this issue too.
Go and edit the file “/usr/share/php/Archive/Tar.php”

from
$v_att_list = & func_get_args();
to
$v_att_list = func_get_args();

Then install “Archive_Tar” (not needful but perhaps useful)

pear install Archive_Tar

and finally apcu

pecl install apcu

At the end, add “extension=apcu.so” to your php.ini and reload/restart Apache/Ngix.

bye :wink: