My cron commands are "php -q PATH-TO-FILE"
I'm getting "/bin/sh: php: not found" errors. What path should I be using to execute PHP, or how can I find out?
update
PHP5-cli is now installed. Now I'm getting /bin/sh: /var/lib/php5: Permission denied
when all of these are run as root
Because your crontab does now know what the ENVIROMENT is so you must tell the PHP path.
If the file is not on the above path which is the most common path in most default installation you can run the bellow command to find where it is:
The command-line interpreter of PHP can be a separate package. I know it is in Debian. On Ubuntu the following command should install the requisite tools:
sudo apt-get install php5-cli
I was getting the error like this
I was missing the '/' I made the changes like this
Now it is working. The path should be correct