I have installed following Magento extension on website.
http://www.magentocommerce.com/magento-connect/cpc-strategy-feed-exporter-9392.html
They have given following instruction to set up cron job. If cron job will set up perfectly then and only I can create perfect Google product feed with help of this Magento extension.
I have CPanel of website and able to see Cron Job section over there. But, I am confused to add command in Command text field.
What exactly Command I require to add over there before click on Add New Cron Job. You can find out attachment to know more about it.
Instruction Given By Magento Extension Developer
You can add a cronjob easily from the Direct control panel. Please follow the steps below in order to setup the cronjob.
- Login to Direct control panel
- Click on 'Cron Jobs' option in the home page of Direct Admin control panel.
- From that page you can setup the time interval at which the cronjob should be executed.
Basically, to apply cronjob to Magento,
add */5 * * * *
followed by command /usr/local/lsws/fcgi-bin/lsphp5
/home/user/domains/mydomain.com/public_html/cron.php
in the space provided.
This will execute the cronjob in every 5 minutes. To execute cron job in 5th minute of every hour you should add 5 * * * * followed by above command.
Make sure that you add each information in the box provided correctly.
I have set up cron job on CPanel as follow. But, It's not working. Can you please help me to fix this issue?
Best Answer
Magento has a script called
cron.php
that executes all of the cronjobs that extensions create internally in Magento. It's advisable to indeed run this every 5 minutes.Now in your screenshot the time is set right. All you need to do is add the command in the last box.
Basically the first part is the path to the PHP executable that will run the script and the second part is the FULL path to the script itself. For me usually using the
php
command is enough to execute a script with PHP but if you're not sure just contact your hosting provider