See
this discussion.
In general, when you get an error message like "can't find php cli", go to the
front page of moodle.org and enter the exact string into the "Search this site" box at the top of the right side of the page. You will quickly find that you are not the only one who has gotten the error message, and you will usually find a solution.