Closed (fixed)
Project:
Poormanscron
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
25 May 2008 at 17:23 UTC
Updated:
12 Oct 2018 at 22:11 UTC
Jump to comment: Most recent
Comments
Comment #1
vm commentedwhy not set up a cronjob on your server to run cron.php at regular intervals and by pass the resources poormans cron is using ?
Comment #2
Anonymous (not verified) commentedVeryMisunderstood,
I'd be happy to set up a cron to run periodically, but I haven't the foggiest idea as to how.
Comment #3
vm commentedtypically done in your hosts control panel. Host documentation or the like will light the way.
Comment #4
Anonymous (not verified) commentedI checked the cPanel on the hosting service and set up a CRON job to execute cron.php
It didn't work and generated a bunch of errors. So I submitted a help request to the hosting service.
They said that they'd increased the amount of ram in the PHP.INI file to 64 meg and that it should work.
I tried it again - still no luck.
Regardless what I try the cron.php file will not execute unless I do it manually.
I'm wondering - when I run the cron job manually I'm logged in as the administrator of the Drupal site.
Is this the problem? When the job is run by the hosting service as a CRON job, I'm logged out of the Drupal site.
I've gone back to running cron manually since nothing I've tried has worked.
Comment #5
vm commentedyou don't need to be logged in for the server to run the cronjob. Apache is running it so it will run whether you are logged into drupal or not. Asking your host why the cronjobs aren't working would provide more fruit. It's a standard practice these days to run a cronjob in apache to do these types of tasks and if the panel provides a method to do so, then the host allows this to be done and should offer support on such a feature.
Comment #6
Anonymous (not verified) commentedI'll give it another shot.
I sent them a copy of the error message the other day and that resulted in their responding with increasing the memory limit in the PHP.ini file.
However, I still get errors.
One thing I'm curious about is if the cron.php file is referencing any other files this may be the problem as the path to files is different when running a cron job - different than from a browser.
Has anyone else actually had experience in running the "cron.php" file in Drupal on a scheduled basis?
An example would be very helpful.
Thanks!
Comment #7
Anonymous (not verified) commentedMy hosting service responded and said that they'd modified the cron job command line.
The format is very similar to the following and it's running perfectly. I run it once a day using the CRON.PHP maintenance script from Drupal.
45 * * * * /usr/bin/wget -O - -q http://example.com/cron.php
Comment #8
vm commented