Looking for Customer Service & Support

IMPORTANT: This is a Community Forum. Answers are given by the community. If you are a Customer, please, Open New Issue to get access to the support service.

Customer Support is only provided through our ticketing system https://support.extly.com/. If you do not have a paid membership, please create a new topic in the community forum.

How to setup a cron job for XTDir SobiPro

More
4 years 3 months ago #6756 by Morten Bracker
Morten Bracker created the topic: How to setup a cron job for XTDir SobiPro
Hi,

I am using the XTDir for SobiPro.

I have tried in alll directions but I can't find the right way. How do I set up a cron job for updating the index?

I am using www.setcronjob.com for my crons. I have tried using this url:

www.publizd.com/cli/xtdir_indexer.php

But it does not work.

Can you please help me.

Thanks and best regards, Morten

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #6757 by Support Team
Support Team replied the topic: How to setup a cron job for XTDir SobiPro
In Joomla cli command line, the processes are not compatible with web execution (calling an URL).

When you call an URL, the web server expects to deliver the page in a few seconds. In the other hand, a cronjob task may run for a long time (E.g. several minutes), not suitable for web server processing.

If the web server executes a cronjob task, it might end unexpectedly when it reaches the timeout. The timeout can be extended... but it's not the solution.


So, the recommended way it to locally execute the command line with the server scheduling. Please, check with your hosting provider how to schedule the command line.


Thanks,

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #6758 by Morten Bracker
Morten Bracker replied the topic: How to setup a cron job for XTDir SobiPro
Okay. If I can't run it from Setcron, then my server admin tells me that they have to set it up for me.

So, what would the command line be that I should give them?

And what would the time frequece have to be - every 2 minuttes?

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #6759 by Support Team
Support Team replied the topic: How to setup a cron job for XTDir SobiPro
This is the command:

*/15 * * * * php /[PATH_TO_JOOMLA_ROOT]/cli/xtdir_indexer.php

Every 2 min is a very high frequency, and almost every time no new or modified entries are going to be found; and results are going to be the same. It's better 15 min (similar to the default cache timeout).


Thanks,

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #6760 by Morten Bracker
Morten Bracker replied the topic: How to setup a cron job for XTDir SobiPro
Like this:
*/15 * * * * php /www.publizd.com/cli/xtdir_indexer.php

Or with the http:// also like:
*/15 * * * * php http://www.publizd.com/cli/xtdir_indexer.php
Last Edit: 4 years 3 months ago by Morten Bracker.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #6761 by Support Team
Support Team replied the topic: How to setup a cron job for XTDir SobiPro
The command uses to require the full server path to the file:

*/15 * * * * php /....../www.publizd.com/cli/xtdir_indexer.php

Hosting support most probably change the path to the right absolute directory.


Thanks,

Please Log in or Create an account to join the conversation.

Time to create page: 0.136 seconds
Join the Club!

Access and support services to all Extly's extensions for 1-Year. The Extly Club is your source for all of our extensions.

Join Now