Cron is very useful tool in linux to made scheduler task for general purpose, like backup data, script execution and others.
The most used crontab under linux is for executing PHP script, but sometimes this crontab is not running well. Its happen because php CLI (Command Line Interface) is not installed in your file server.
You can test this php CLI command via console, by typing
and if php CLI not installed yet, you should get an error message like this
The program ‘php’ is currently not installed. You can install it by typing:
apt-get install php5-cli
bash: php: command not found
To fix this you must install it first by typing ‘apt-get install php5-cli’ (without quotes). Wait until the process is done and you can run crontab to executing your PHP scripts.