Cron Job denied
« on: August 24, 2006, 04:26:50 AM »
Hello,

I installed everything but when my corn job ran I got an email from my server that looked like this:

/bin/sh: line 1: /home/nitrost/public_html/myfhaus/sitemap/runcrawl.php: Permission denied

Any ideas???

Thanks!
David
Re: Cron Job denied
« Reply #1 on: August 24, 2006, 06:24:21 AM »
Hello,

which command line you are using for cron job? It should include path to php interpreted, like:
Code: [Select]
/usr/local/bin/php /home/nitrost/public_html/myfhaus/sitemap/runcrawl.php
Re: Cron Job denied
« Reply #2 on: August 25, 2006, 07:38:19 PM »
Having the same issue here with this line in for the cron job.
/usr/local/bin/php/home/mysiteName/public_html/generator/runcrawl.php

I have since modified it according to your last post to this;
/usr/local/bin/php/home/mysiteName/public_html/generator/runcrawl.php

Do you have any other recomendations on this?

Thanks ;)

Re: Cron Job denied
« Reply #3 on: August 25, 2006, 11:55:02 PM »
Hello,

it seems like you have a space character missing after "/php", the line should be consisted from 2 strings like this:
Code: [Select]
/usr/local/bin/php /home/mysiteName/public_html/generator/runcrawl.php:)
Re: Cron Job denied
« Reply #4 on: August 27, 2006, 03:46:05 AM »
yes that did it thanks.  ;D
Re: Cron Job denied
« Reply #5 on: August 28, 2006, 04:58:40 AM »
Sure did the trick!