nextcloud (15.0.2) occ command broken due to missing php on PATH
The occ
script to manage the nextcloud from the command line has the following shebang: #!/usr/bin/env php
Checking over SSH, $PATH
is set to: /usr/bin:/usr/sbin:/bin:/sbin
and which php
cannot find a php
executable.
A fix could be to add symlink: ln -s /usr/bin/php-cli /usr/bin/php
.