Wednesday, September 23, 2009

Set cron in Linux server

Set cron in Linux server:
=========================

1.sudo apt-get install cron

2. sudo apt-get install php5-cli

3.create testing.php file and give 777 permissions.
sudo chmod 777 /var/www/testing.php

4.sudo crontab -e
in that opened file type this following command

# m h dom mon dow command
* * * * * /var/www/testing.php

*- refers to every minute,every hour , every week.

1. ctrl+x to save ; press Y and give enter

Now your cron will work :)

No comments:

Post a Comment