metyun
2
Hi,
You must run with root user and use this command:
sudo -u nextcloud php8.1 --define apc.enable_cli=1 occ config:app:set --value="256 384 1024" previewgenerator widthSizes
or use your command after add it in the php.ini file for a permanent usage:
echo apc.enable_cli=1 >> /etc/php/8.1/cli/php.ini
More explications in this topic (in french)
1 Like