Jeremy Davis's picture

To exexcute php from the commandline (and/or from a bash script/cron/etc) you need to have php5-cli installed. I don't recall if it is installed by default, but it's easy to install:

apt-get update && apt-get install php5-cli

And OTTOMH that should be the correct path for php. To double check try this:

whereis php