How to run cron job on localhost in Magento

Step1: Assuming your custom module job schedule time is set <cron_expr>*/5 * * * *</cron_expr> (means cron will run job in every 5 min).

Step2: Now run the cron.php (present on root) file continuously on browser by pressing F5 button.
File path: http://localhost/projectname/cron.php

Step3: You will see the job has been executed after 5 minutes.

That's It!!! So simple... :)

Note: You can also view all jobs schedule in Magento system as follows.

Step1: Download the script from Nexcess site. Click here to download... (Thanks to Nexcess!!!)
Step2: Paste it on the root of Magento.
Step3: Now execute this file and you will get the list of job scheduled.
You should see something like this:














Note: You will know more about Magento & Download latest version of Magento from http://www.magentocommerce.com/
How to run cron job on localhost in Magento How to run cron job on localhost in Magento Reviewed by Web Technology Funda on 4:46:00 AM Rating: 5

No comments

Free! Free!Free! Subscribe to Get Free PHP (Magento) tutorial Update in Your Inbox!!! Hurry Up!!!