XML Sitemaps Generator

Author Topic: cron job against password-protected generator  (Read 19536 times)

Mark Wilson

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 10
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: [external links are visible to admins only]
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="http://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?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: cron job against password-protected generator
« Reply #1 on: February 13, 2008, 09:40:20 PM »
Hello,

what is the command line you use for the cron job?
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

Mark Wilson

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 10
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: [external links are visible to admins only]
/usr/bin/php /usr/home/username/public_html/generator/runcrawl.php
Mark

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
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)?
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

Mark Wilson

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 10
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)

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

leah

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
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.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: cron job against password-protected generator
« Reply #7 on: February 24, 2008, 08:50:22 PM »
Are you executing it form command line manually via SSH?
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

leah

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: cron job against password-protected generator
« Reply #8 on: February 25, 2008, 10:40:40 AM »
Yes I am..
Code: [external links are visible to admins only]
/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.)

leah

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
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?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: cron job against password-protected generator
« Reply #10 on: February 25, 2008, 11:45:34 PM »
Yes, please do.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

leah

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: cron job against password-protected generator
« Reply #11 on: February 28, 2008, 05:20:14 PM »
Email sent, thank you.  :)

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2