I am trying to run commands through ssh, but commands are not working. Please check the screenshot.
This means the php not set as a Environment Variable.
So it must be tried with a full path with php:
Run this in SSH:
And then provide the full path e.g.:
/usr/bin/php with the result of
which php command