cron job against password-protected generator
« on: February 12, 2008, 11:55:55 PM »
I have my generator pages protected by as password and this has been working well for some time now; however whenever my cron job runs to generate the sitemap, all it returns is the HTMl from the logon page (see below):

Code: [Select]
X-Powered-By: PHP/4.4.7
Set-Cookie: PHPSESSID=75a8b0ac138359b709f3016aeb6084f7; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Configuration: XML, ROR, Text, HTML Sitemap Generator - (c) www.xml-sitemaps.com</title>
<meta http-equiv="Content-type" content="text/html;" charset="iso-8859-15" />
<META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
<link rel=stylesheet type="text/css" href="pages/style.css">
</head>
<body>
<div align="center">
<h1><a href="./">Standalone XML Sitemap Generator</a></h1>
<div id="menu">
<ul id="nav">
<li><a class="navact" href="index.php?op=config">Configuration</a></li>
<li><a href="index.php?op=crawl">Crawling</a></li>
<li><a href="index.php?op=view">View Sitemap</a></li>
<li><a href="index.php?op=analyze">Analyze</a></li>
<li><a href="index.php?op=chlog">ChangeLog</a></li>
<li><a href="index.php?op=l404">Broken Links</a></li>
<li><a href="documentation.html">Documentation</a></li>
</ul>
</div>
<div id="outerdiv">
<div id="sidenote">
</div>
<div id="shifted">
<h2>Login</h2>
<form action="index.php" method="POST">
<div class="inptitle">Username:</div>
<input type="text" name="user" size="30" value="">
<div class="inptitle">Password:</div>
<input type="password" name="pass" size="30" value="">
<div class="inptitle">
<input class="button" type="submit" name="login" value="Login" style="width:150px;height:30px">
</div>
</form>
</div>
<br style="clear:both;"/>
</div>
<div id="copyright">
<!--1033-->
Standalone Sitemap Generator (PHP) v2.5.1, 2006-11-25|
<a href="license.html">Read License</a>
<br>
Copyright (c)2005,2006 <a href="https://www.xml-sitemaps.com">XML Sitemaps</a>
<br style="clear:both;"/>
</div>
</body>
</html>

Is there a way to make a cron job work with a password-protected generator?
Re: cron job against password-protected generator
« Reply #2 on: February 13, 2008, 10:25:19 PM »
Hi Oleg,
The command I'm using is
Code: [Select]
/usr/bin/php /usr/home/username/public_html/generator/runcrawl.php
Mark
Re: cron job against password-protected generator
« Reply #3 on: February 14, 2008, 08:02:14 PM »
Mm.. that should not happen for the command line execution. Are you running the latest version of Sitemap Generator (2.8)?
Re: cron job against password-protected generator
« Reply #4 on: February 15, 2008, 10:38:22 PM »
Still on v2.5.1 but it's never worked (this isn't a new problem)
Re: cron job against password-protected generator
« Reply #5 on: February 17, 2008, 08:11:14 PM »
Please try the latest version, that is possibly a bug fixed in one of the releases.
Re: cron job against password-protected generator
« Reply #6 on: February 24, 2008, 04:21:43 PM »
I'm having the same issue of output of this html to the commandline before and after upgrading.

This week we started resuming the crawl process via the webpage which seems to work, but for 40,000 pages it's a matter of spending all day checking and resuming it. It did work at one point when it was installed but I'm still unclear if/when it stopped working, the sitemaps did previously appear to be quite old and data for Analyze is still outdated.
Re: cron job against password-protected generator
« Reply #8 on: February 25, 2008, 10:40:40 AM »
Yes I am..
Code: [Select]
/usr/local/bin/php /home/xxx/public_html/generator/runcrawl.php ouputs the html for the configuration page as I have cleared the login while trying to sort this.

We were running weekly as cron, at the moment I have set it to daily and now outputting the next run output to email, so I'll see what happens with that in an hour or two.

(My client had purchased this 1-2 years ago, but lost her email when her laptop was stolen shortly after, it was less hassle for me to just buy again in order to upgrade it to see if it fixed our issue. I still have copies of the setup emails in my archives.)
Re: cron job against password-protected generator
« Reply #9 on: February 25, 2008, 12:59:49 PM »
Cron output is also the html for the configuration page.

I still have your email address, would it help if I send you the login?
Re: cron job against password-protected generator
« Reply #11 on: February 28, 2008, 05:20:14 PM »
Email sent, thank you.  :)