Trigger deferred.php Via Shell Crontab

Trigger deferred.php Via Shell Crontab

Hi everyone, I need a little bit of novice-level help.

In reference to the the instructions provided by the link above...

Where do I find the "the full path to your PHP executable" (see text in bold below) ?

CODE:

* * * * * root /path/to/your/php /path/to/your/site/deferred.php > /dev/null 2>&1

Thank you!
 
Is this still a good idea and needed for XF2 on a high traffic site?

Ironically, I am looking to implement the same solution for a very low traffic site!

I have several private forums which have a small number of users and see traffic only a couple of times a month. Without users visiting the site to trigger the deferred message processing, the cron tasks rarely run!

So I went ahead and implemented this functionality for XF2 ... including a custom built CLI based job runner to use with unix cron (loving the codebase in XF2 - so easy to work with and extend!).

https://xenforo.com/community/resources/cli-job-runner.6478/

I haven't tested the performance on a high traffic site and I think the XF2 system seems to be very robust, so I doubt it's really necessary - but it's there if you want to try it.
 
I'm still confused
@digitalpoint @truonglv

* * * * * root /path/to/your/php /path/to/your/site/deferred.php > /dev/null 2>&1

Path to your php is it in "/usr/bin/php" ? (i'm using centos nginx)
And path to your site/deferred.php is it like mydomain.com/deferred.php ?
 
I'm still confused
@digitalpoint @truonglv

* * * * * root /path/to/your/php /path/to/your/site/deferred.php > /dev/null 2>&1

Path to your php is it in "/usr/bin/php" ? (i'm using centos nginx)
And path to your site/deferred.php is it like mydomain.com/deferred.php ?
I have used this:
Code:
* * * * * curl https://domain.com/job.php >> /dev/null
 
Top Bottom