No access to occ from either browser or directly

I have just been setting up a new Raspi4b and installed NC via curl from the Github rep. I succeeded in accessing the raspi from my local ipad via ‚https://192. …:4443 to activate my installation and copy the very handy passwords (sic). When I started the installation wizard from the Raspi I encountered a bad storage device (3TB usb-device, that has really been killed by some actions before) and could not do anything sensical thereafter: no access from the Raspy via occ, no browser-access. Trying to start occ from the nextcloud directory met ‚cunknown command‘ even when trying it as root and the usual alternatives with http and form within the http directory with www-data - all to no avail. Is there any chance to get this going or would I have to start again from scratch? The cookbook was a recent article in Mac & I. Thanks for your ideas!

Can try ncc instead of occ

ncc is Nacho’s occ wrapper, it takes care of php, user and path

What is it you want to achieve by running occ?

occ is not for connecting to the rpi, should use ssh/putty for that.

I did and I failed: proposes the following commands: (on the raspi)
sudo chown -R www-data:www-data /var/www/nextcloud
This went well
cd /var/nextcloud
This failed with bash: cd: /var/www/nextcloud: No authorisation
and of course
sudo cd /var/www/nextcloud
failed with sudo: cd: command not found
I succeeded however with
sudo -u www-data php /var/www/nextcloud/occ
which turned out
NextCloudPi 20.0.8. and all the rest
However the next step failed again:
sudo -u www-data php occ help maintenance:install
gave back:
Could not open input file: occ
the same with your proposed ncc:
sudo -u www-data php /var/nextcloud/ncc
telling me the input file couldn‘t be opened
So how do I get on from here?

try (for example)

sudo ncc files:scan --all

Or any other occ action

To cd to /var/www/nextcloud try becoming root first.

sudo su -
cd /var/www/nextcloud

sudo ncc … gave back
Nextcloud is not installed - only a limited number of commands are available

Plus a red box: There are no commands defined in the ‚files‘ namespace.

after having become root and changed to …nextcloud dir the command occ brought back command not found

I am going to start again from scratch, thank you all.