Nextcloud OCC Difficulties (Solved)

Hi everyone! I’m new to all of this so I’m having some growing pains working with Nextcloud, was hoping to get some help.

I’m trying to run some OCC commands for Nextcloud and I keep on getting told

sudo -u www-data php occ
-sudo: php: command not found

I think this might be because I don’t know the right file location to reference for php. occ looks like it’s in /DATA/AppData/big-bear-nextcloud/html, but I’m not sure where php ends up for CasaOS and BigBearCasoOS’s Nextcloud. Any help or advice would be appreciated!

I figured it out, figured I ought to leave the solution here.

The command to run was different than the documentation, presumably because of Nextcloud’s context within the docker. What I needed was:

docker exec -u www-data nextcloud php occ