• Welcome to Sitemap Generator Forum.
 

Cron job with password-protected Sitemap Generator?

Started by marcel5, February 20, 2013, 07:28:39 PM

Previous topic - Next topic

marcel5

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

XML-Sitemaps Support

Hello,

make sure that you run generator in command line via cron task, similar to:
/usr/bin/php /path/to/generator/runcrawl.php

marcel5

#2
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

XML-Sitemaps Support

Hello,

do you meant password protecting generator (which doesn't affect the cron task and it should be fine) or password protecting your website?

marcel5


XML-Sitemaps Support

The issue must be related to something else, since when generator is running from command line it doesn't check the password.

marcel5

You seem to be right. It works via SSH. So I will contact my webhoster.  ;)

Thank you for your replies!