• Welcome to Sitemap Generator Forum.
 

automatic cronjob

Started by pay12, September 25, 2008, 12:24:29 AM

Previous topic - Next topic

pay12

how can the cronjob via an external provider cronjob start automatically approved?

XML-Sitemaps Support

Hello,

the cron job should be setup in hosting control panel. In case if you want to execute generator via URL from external site you can use "domain.com/generator/index.php?op=crawlproc" link (although password protection in sitemap generator config should be disabled for that).

pay12

so:

[ External links are visible to forum administrators only ]


???


kleinholz

What about adding a feature to offer a way to call cronjob-script from external-cronjob-service AND having password-protection enabled? I dont think its smart to switch off pw-protection globally and permanent... just to run the cronjobs...

XML-Sitemaps Support

That is a good point.
You can manually create another php file in generator folder with the filename of your choice (so noone else knows it) with content:
<?php
$op
= $_REQUEST['op'] = 'crawlproc';
$_REQUEST['bg'] = $_REQUEST['resume'] = true;
include
'./index.php';
?>


and then use it for external web based cron service.

kleinholz

Thanks! I will try this... I just added the external cronjob and this script!

xipe

Hi,

I'm very happy that the new version of PHP Sitemap Generator works on my webspace (Mijndomein.nl)
It crashed with the previous version, but now it works fine.

Now I would like to run it from a remote cron using wget.
How can I do this? I tried to run runcrawl.php in a cron, but it is protected, I guess.

Any help would be appreciated very much.

Cheers,
Robert



xipe

Dear Oleg,

Thank you very much for the solution to run the remote cron.

I have one more problem left: the urllist.txt is written to the data folder instead of the root of my website.
In my config file I have this:

'xs_sm_text_filename' => '/storage/mijndomein/users/061775/public/sites/www.onestop-travel.nl/urllist.txt',
'xs_sm_text_url' => '[ External links are visible to forum administrators only ]

Still it is written to the wrong folder. How can I solve this?

Best regards,
Robert

XML-Sitemaps Support

Hello,

if you are running sitemap generator 3.0, you should change configuration in generator/data/generator.conf file:
   <option name="xs_sm_text_filename">........</option>
   <option name="xs_sm_text_url">.....</option>

xipe

Dear Oleg,

Thank you very much for this information.
It works fine now!
Solution was setting the xs_sm_text_filename value.

I have a question about the 'old' config.inc.php
Do I still need this file, or is generator.conf containing all the info?
Like the loogin information, I wonder where this is stored now.

Best regards,
Robert