You can, but you have to add the argument: --define apc.enable_cli=1
sudo -u nextcloud /usr/bin/php7.3 --define apc.enable_cli=1 occ maintenance:mode --off
You can, but you have to add the argument: --define apc.enable_cli=1
sudo -u nextcloud /usr/bin/php7.3 --define apc.enable_cli=1 occ maintenance:mode --off