/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 #1 on: March 09, 2009, 11:45:04 PM »
Hello,

please try this instead:

/usr/bin/php /var/www/web1/html/generator/runcrawl.php
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.
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
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.