[SOLVED] Using OCC command on Nextcloud

Hardware: VPS bought online ( Contabo )
YunoHost version: (stable)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

i’m trying to use occ on nextcloud to setup the same dashboard for all users as shown in here.

however, i’m unable to understand how to use it.

anyone can help?

You have an example here: Nextcloud | Yunohost Documentation

sudo su
cd /var/www/nextcloud
sudo -u nextcloud php7.3 occ ...
1 Like

oh, damn, thank you!

1 Like

actually, just tried and received this error. :sweat_smile:

root@xxx:/var/www/nextcloud# sudo -u nextcloud php7.3 occ config:app:set dashboard layout --value='calendar,tasks,welcome'
An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

Let’s try then:

sudo -u nextcloud php7.3 --define apc.enable_cli=1 occ ...

this one worked. :smiling_face:

thank you!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.