the Moodle documentation says here https://docs.moodle.org/35/en/Administration_via_command_line
to upgrade using the apache user:
sudo -u apache /usr/bin/php admin/cli/upgrade.php
My server is on Debian so I use www-data instead of apache. However trying to run a command as www-data or switching user to www-data results in the output "This account is currently not available" and I read that is correct because you shouldn't run commands as that user https://askubuntu.com/questions/486346/this-account-is-currently-not-available-error-when-trying-to-ssh/486661#
So which user should I actually use? Or should I create one?
(Also everywhere else Debian is used as an example so it would be clearer to use www-data instead of apache if you ask me)