Jun
05

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

php /var/www/some-script.php

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

PHP CLI

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. ;-)

Category: Software  Tags: , , , , ,
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
3 Responses
  1. Kelly Brown says:

    I really like your post. Does it copyright protected?

  2. admin says:

    my articles is free to spread but you must include original link for this article :-)

  3. GarykPatton says:

    How soon will you update your blog? I’m interested in reading some more information on this issue.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">