Security & Setup warnings >> how to use occ commands on NCP

Simply sharing issues I, as a beginner, run into and how I try to solve them.

My System:

  • Raspi4 4GB
  • NCP .img 11-27-2020 (arm64)
  • Boot from SSD (no microSD) like this

After restoring the backup I had this list of warnings:

It took me some time to understand how to use the occ commands. So in case someone else struggles with this, I hope this will help:

The warnings kindly show what kind of occ commands I have to use to solve the issue, however, if they are simply typed out in the terminal, nothing will happen.

On a setup as described above, you have to type:
sudo -u www-data php /var/www/nextcloud/OCC-COMMAND
see below: