• Welcome to Sitemap Generator Forum.
 

runcrawl not working in updated version

Started by Stefan.Devroey, February 09, 2006, 12:36:13 PM

Previous topic - Next topic

Stefan.Devroey

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 ?


XML-Sitemaps Support

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?

Stefan.Devroey

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

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).