php5-cli package is installed and newest version.whereis php displays php: /usr/bin/php /usr/local/bin/php /usr/share/man/man1/php.1.gz./usr/bin/env php -v displays correct PHP version (same as /usr/bin/php -v).Before this line, there is also called /bin/composer self-update and /bin/composer -V, which both runs correctly and displays correct output. Things are more weird the more I look on that script. The script reports /usr/bin/env: php: No such file or directory at command /bin/composer install (using Composer). The user deployer has uid=0, so its basically root (this will be changed in the future, I have set it only to eliminate permissions problems until it works fine).Īnd here is where the things get tricky. So basically I just call ssh someArguments and it runs my script with someArguments as parameters.
Access to this script is done through ssh, using this tutorial, I have set up ssh login, that runs that script. That script is on my home server (Ubuntu 15.10 Server), marked as executable.