문제


i am using aggregator core module in drupal and i need to schedule it in crontab but outside cron.php i tried wget http://mywebsite.com/admin/content/aggregator/update/1
i got 403 forbidden error
i tried curl as well and it returns this as html part

  You are not authorized to access this page

although i have set the permission of this module to anonymous users!!

any idea is highly appreciated Thanks

도움이 되었습니까?

해결책 3

Thanks All for your help!! i solved my problem by scheduling the following code as a cron and thus it runs aggregator cron as i want:

<?php
require_once '/var/www/htdocs/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
module_invoke('aggregator','cron');
?>

다른 팁

There are alternatives to the default cron which runs all cron implementations, for example Elysia Cron, see kbahey's blog post about it.

At least that's what I assume you want to do, run it more or less often than the other cron implementations.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top