/bin/sh: /usr/local/bin/php: No such file or directory
« on: March 07, 2009, 08:18:19 PM »
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
Re: /bin/sh: /usr/local/bin/php: No such file or directory
« Reply #2 on: December 26, 2011, 01:28:27 PM »
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

Re: /bin/sh: /usr/local/bin/php: No such file or directory
« Reply #3 on: December 27, 2011, 11:03:47 AM »
Please try this instead:
/usr/local/bin/php /home/www/rajaadwords.com/generator/runcrawl.php

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