Cron job with password-protected Sitemap Generator?
« on: February 20, 2013, 07:28:39 PM »
Hello,

I'm using the password protection of the Sitemap Generator. Now I would like to use the option to run the Sitemap Generator via cron job, but that doesn't seem to work together with the password protection. (But it works without password protection.)

The information mails contain the following error message:
Quote
<h4>An error occured: </h4> <script> top.location = 'index.php?op=config&errmsg=%3Cb%3EThere+was+an+error+while+retrieving+the+URL+specified%3A%3C%2Fb%3E+http%3A%2F%2Fwww.example.de%2F%3Cbr%3E%3Cb%3EHTTP+Code%3A%3C%2Fb%3E%3Cbr%3E%3Cbr%3E%3Cb%3EHTTP+headers%3A%3C%2Fb%3E%3Cbr%3E%3Cbr%3E%3Cb%3EHTTP+output%3A%3C%2Fb%3E%3Cbr%3E' </script> 

Therefore my question is: Is it possible to run password-protected Sitemap Generator via cron job? (And if yes, how?)

Thank you very much
Marcel
« Last Edit: February 20, 2013, 07:40:01 PM by marcel5 »
Re: Cron job with password-protected Sitemap Generator?
« Reply #1 on: February 20, 2013, 09:04:34 PM »
Hello,

make sure that you run generator in command line via cron task, similar to:
/usr/bin/php /path/to/generator/runcrawl.php
Re: Cron job with password-protected Sitemap Generator?
« Reply #2 on: February 20, 2013, 09:19:38 PM »
Hi Oleg,

thank you for your reply. I already set up the cron task. And it works - if I have not set up the password protection. Now I would like to have it working WITH password protection. Any idea?

By the way: In order to make the runcrawl.php working at all on my webhost I needed to add "#!/usr/bin/php" in the top line of it.

Thank you
Marcel
« Last Edit: February 20, 2013, 09:22:45 PM by marcel5 »
Re: Cron job with password-protected Sitemap Generator?
« Reply #3 on: February 22, 2013, 12:56:46 PM »
Hello,

do you meant password protecting generator (which doesn't affect the cron task and it should be fine) or password protecting your website?
Re: Cron job with password-protected Sitemap Generator?
« Reply #4 on: February 22, 2013, 05:27:30 PM »
Yes, I meant password protecting generator.
Re: Cron job with password-protected Sitemap Generator?
« Reply #5 on: February 23, 2013, 04:09:25 PM »
The issue must be related to something else, since when generator is running from command line it doesn't check the password.
Re: Cron job with password-protected Sitemap Generator?
« Reply #6 on: February 25, 2013, 05:03:13 PM »
You seem to be right. It works via SSH. So I will contact my webhoster.  ;)

Thank you for your replies!