• Welcome to Sitemap Generator Forum.
 

/bin/sh: /usr/local/bin/php: No such file or directory

Started by shop4, March 07, 2009, 08:18:19 PM

Previous topic - Next topic

shop4

Hi,

I set up a cronjob with the following path:

/usr/local/bin/php /var/www/web1/html/generator/runcrawl.php

I actually copied this path from the "Cron job setup"-tab in the standalone sitemap generator.
You can use the following command line to setup the cron job for sitemap generator:
/usr/local/bin/php /var/www/web1/html/generator/runcrawl.php


However when the cronjob tries to execute the file I get the following error message:
/bin/sh: /usr/local/bin/php: No such file or directory

How can I resolve this?

Many thanks in advance
Sören


info1906

Hi,
I also encountered the same errors like this :
/bin/sh: /usr/bin/php: No such file or directory
I have put on crontab :
/usr/bin/php /home/www/rajaadwords.com/generator/runcrawl.php
/usr/bin/php /home/www/mrxgame.com/generator/runcrawl.php


XML-Sitemaps Support

Please try this instead:
/usr/local/bin/php /home/www/rajaadwords.com/generator/runcrawl.php

or:
php /home/www/rajaadwords.com/generator/runcrawl.php