XML Sitemaps Generator

Author Topic: runcrawl not working in updated version  (Read 30115 times)

Stefan.Devroey

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
runcrawl not working in updated version
« on: February 09, 2006, 12:36:13 PM »
I updated today to the new 2.02 version but my crawler is not working anymore.

My cron error report :
/home/pspwerel/public_html/sitemap/runcrawl.php: cannot open ?php: no such file
/home/pspwerel/public_html/sitemap/runcrawl.php: 2: Syntax error: "(" unexpected (expecting ")")

runcrawl.php looks like this :

...
Any ideas what to do ?

« Last Edit: February 09, 2006, 01:43:26 PM by admin »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: runcrawl not working in updated version
« Reply #1 on: February 09, 2006, 01:43:16 PM »
Hi,

how does your cron command line look like? (It should be something like "/usr/bin/php /home/pspwerel/public_html/sitemap/runcrawl.php")
Is it working correctly when executed from the browser?
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.

Stefan.Devroey

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: runcrawl not working in updated version
« Reply #2 on: February 11, 2006, 07:58:07 AM »
When I call it from the browser it is working


The command line for the cron job is :
/home/public_html/sitemap/runcrawl.php

the vdeck interface at my hoster is cheking if the file is actually there before accepting

It seems to me that he can read the file as well because in the error log he is reffering to the first line in the file.

WDYT ?

Stefan

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: runcrawl not working in updated version
« Reply #3 on: February 11, 2006, 02:09:46 PM »
Hello,

php scripts are *not* executed from the command line in this way (unlike perl scripts).

You should call php interpreter with script name as parameter:

/usr/bin/php /home/pspwerel/public_html/sitemap/runcrawl.php

OR

/usr/local/bin/php /home/pspwerel/public_html/sitemap/runcrawl.php

(depending on where php is located in your case).
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.

 

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