XML Sitemaps Generator

    Advanced search
Sitemap Generator Forum
July 20, 2008, 08:05:52 AM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Sitemap software 2.9 released - Email notifications, html sitemap customizing and more
6811 Posts in 1679 Topics by Members
Latest Member: randy.slabey
Pages: [1]
  Print  
Author Topic: cron job against password-protected generator  (Read 3380 times)
Mark Wilson
Registered Customer
Newbie
*
Posts: 8



View Profile
« 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:
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?
Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« Reply #1 on: February 13, 2008, 09:40:20 PM »

Hello,

what is the command line you use for the cron job?
Logged

Mark Wilson
Registered Customer
Newbie
*
Posts: 8



View Profile
« Reply #2 on: February 13, 2008, 10:25:19 PM »

Hi Oleg,
The command I'm using is
Code:
/usr/bin/php /usr/home/username/public_html/generator/runcrawl.php

Mark
Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« 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.Cool?
Logged

Mark Wilson
Registered Customer
Newbie
*
Posts: 8



View Profile
« 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)
Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« 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.
Logged

leah
Registered Customer
Newbie
*
Posts: 4


View Profile
« 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.
Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« Reply #7 on: February 24, 2008, 08:50:22 PM »

Are you executing it form command line manually via SSH?
Logged

leah
Registered Customer
Newbie
*
Posts: 4


View Profile
« Reply #8 on: February 25, 2008, 10:40:40 AM »

Yes I am..
Code:
/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.)
Logged
leah
Registered Customer
Newbie
*
Posts: 4


View Profile
« 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?
Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« Reply #10 on: February 25, 2008, 11:45:34 PM »

Yes, please do.
Logged

leah
Registered Customer
Newbie
*
Posts: 4


View Profile
« Reply #11 on: February 28, 2008, 05:20:14 PM »

Email sent, thank you.  Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!