Walnutz

Walnutz




Crontab PHP under Linux not running?

June5

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

posted under Software


3 Comments to

“Crontab PHP under Linux not running?”

  1. On June 13th, 2009 at 5:54 am Kelly Brown Says:

    I really like your post. Does it copyright protected?

  2. On June 13th, 2009 at 12:02 pm admin Says:

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

  3. On June 16th, 2009 at 10:23 pm GarykPatton Says:

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

Email will not be published

Website example

Your Comment:

 
Need a logo? Try crowdSPRING!