This is weird, as it the error says
remote: /usr/bin/env: 'php': No such file or directory
It looks like the process dealing with the push command does not have the proper paths set, therefore not detecting php. Ideally, you should have a wrapper of the mercurial commands so it loads the proper environment. Another quick option would be creating a symbolic link to the Bitnami php executable like follows.
sudo ln -s /usr/bin/php /opt/bitnami/php/bin/php
Hope it helps.
Javier J. Salmerón
Was my answer helpful? Click on