- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2015
02:54 AM
07-03-2015
02:54 AM
cron.php working only manually
Hi,
I really need your help !
For several days I fail to understand why the cron.php file no longer trigger processing when called with my cron job. That's my line in the crontab :
0 */1 * * * wget -O /dev/null http://www.domains.com/cron.php
However, when I call the url in a browser , this one works fine.
In the http logs, i see the calls to the file cron.php every hour. But it is certain that no processing is performed.
Thank you in advance for your help.
I really need your help !
For several days I fail to understand why the cron.php file no longer trigger processing when called with my cron job. That's my line in the crontab :
0 */1 * * * wget -O /dev/null http://www.domains.com/cron.php
However, when I call the url in a browser , this one works fine.
In the http logs, i see the calls to the file cron.php every hour. But it is certain that no processing is performed.
Thank you in advance for your help.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2015
07:40 AM
08-10-2015
07:40 AM
Re: cron.php working only manually
Hi giiiggz,
You could try instead of calling the cron via wget - calling it via the file path..
e.g something like
/usr/bin/php -f /path/to/mydomain.com/public_html/cron.php
Also, another great module that I use to debug why my crons don't sometimes work is AOE Scheduler (https://github.com/AOEpeople/Aoe_Scheduler). Once installed there will be a timeline view inside of the Sytem menu of your admin. This will show you which tasks are going to run / have ran / will be run - along with any errors they produced.
If the timeline stays blank after 15 minutes or so then your cron isn't setup right on your server.
Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2015
10:28 AM
08-10-2015
10:28 AM
Re: cron.php working only manually
How to call cron.php is depend on your server.
Some wget, php, curl..etc.. many commands are capable of sending a output to a email address.. so you can try the command matching your server
Melbourne | Australia - priyan.d@webdesignace.com.au
My Magento 1x Shop
My Magento 1x Shop