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 #6793 by Morten Bracker
Morten Bracker replied the topic: How to setup a cron job for XTDir SobiPro
Hi again

I had my host setting the cron up. This is what they have set up, they told me:
*/15 * * * * wget -T 1000 -O /dev/null http://www.publizd.com/cli/xtdir_indexer.php

It does not seam that the cron is executed on my site - the indexing is not happening. Can you verify that the command is right?

Thanks, Morten

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

More
4 years 3 months ago #6796 by Support Team
Support Team replied the topic: How to setup a cron job for XTDir SobiPro
No, the command is not right.

wget executes a page load, asking for the execution to the webserver.

In the recommended command php ..., it executes right the php script (there's no middleman/process).


Thanks,

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

More
4 years 3 months ago #6805 by Morten Bracker
Morten Bracker replied the topic: How to setup a cron job for XTDir SobiPro
I checked with my host and asked them to verify if the cron was executing. They send me this log (se below) for a few hours of executions. They claim that the cron is executing as intended. I do not have the skills to see if the cron is doing the right thing from that log. But I can confirm, that my site is NOT being indexed. Can you get any meaning out of the log?

50.116.9.254 50.116.9.254 - - [03/Sep/2013:15:10:58 +0200] "GET /cli/xtdir_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/xtdir_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
81.19.232.100 81.19.232.100 - - [03/Sep/2013:15:14:57 +0200] "GET /cli/xtdir_indexer.php HTTP/1.0" 200 - "-" "Wget/1.5.3"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:15:21:58 +0200] "GET /cli/finder_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/finder_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:15:25:58 +0200] "GET /cli/xtdir_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/xtdir_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
81.19.232.100 81.19.232.100 - - [03/Sep/2013:15:29:57 +0200] "GET /cli/xtdir_indexer.php HTTP/1.0" 200 - "-" "Wget/1.5.3"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:15:36:59 +0200] "GET /cli/finder_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/finder_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
81.19.232.100 81.19.232.100 - - [03/Sep/2013:15:44:56 +0200] "GET /cli/xtdir_indexer.php HTTP/1.0" 200 - "-" "Wget/1.5.3"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:15:51:59 +0200] "GET /cli/finder_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/finder_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:15:56:01 +0200] "GET /cli/xtdir_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/xtdir_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
81.19.232.100 81.19.232.100 - - [03/Sep/2013:15:59:58 +0200] "GET /cli/xtdir_indexer.php HTTP/1.0" 200 - "-" "Wget/1.5.3"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:16:07:01 +0200] "GET /cli/finder_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/finder_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:16:10:58 +0200] "GET /cli/xtdir_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/xtdir_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
81.19.232.100 81.19.232.100 - - [03/Sep/2013:16:14:56 +0200] "GET /cli/xtdir_indexer.php HTTP/1.0" 200 - "-" "Wget/1.5.3"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:16:21:59 +0200] "GET /cli/finder_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/finder_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:16:25:58 +0200] "GET /cli/xtdir_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/xtdir_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
81.19.232.100 81.19.232.100 - - [03/Sep/2013:16:29:56 +0200] "GET /cli/xtdir_indexer.php HTTP/1.0" 200 - "-" "Wget/1.5.3"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:16:36:58 +0200] "GET /cli/finder_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/finder_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:16:41:00 +0200] "GET /cli/xtdir_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/xtdir_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"
81.19.232.100 81.19.232.100 - - [03/Sep/2013:16:44:57 +0200] "GET /cli/xtdir_indexer.php HTTP/1.0" 200 - "-" "Wget/1.5.3"
50.116.9.254 50.116.9.254 - - [03/Sep/2013:16:51:58 +0200] "GET /cli/finder_indexer.php HTTP/1.1" 200 20 " www.publizd.com/cli/finder_indexer.php " "SetCronJob/1.0 (+http://www.setcronjob.com/)"

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

More
4 years 3 months ago #6806 by Support Team
Support Team replied the topic: How to setup a cron job for XTDir SobiPro
It's a web access log. The wget commnand is accessing the page, and the webserver is executing the page. But the page has a restriction to ONLY proceed with the processing when it's executing in a php command line setup.

You must schedule a command like:
*/15 * * * * php -f /..../cli/xtdir_indexer.php


Thanks,

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

More
4 years 3 months ago #6807 by Morten Bracker
Morten Bracker replied the topic: How to setup a cron job for XTDir SobiPro
Okay, now I got a reply from my Host. They tell me that:

...the command line based execution of PHP is something most providers shut down for security reasons.


So they will not set it up that way. Further they say:

Ask if it can be made with a "lynx" instead, as the script should in principle only be changed ...


So the php is not a solution. Can you do the script change as they suggests?

Kind regards, Morten

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

More
4 years 3 months ago #6809 by Support Team
Support Team replied the topic: How to setup a cron job for XTDir SobiPro
Ok ..... if they don't allow you to run your own command line scripts ...

You can disable the "web interface" check in the script. Please, try to modify cli/autotweetstartcronjob.php, line 21-25:
// Make sure we're being called from the command line, not a web interface
// if (array_key_exists('REQUEST_METHOD', $_SERVER))
// {
//	die();
// }

In this way, the script should continue the execution even in a web interface.


Thanks,

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

Time to create page: 0.096 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