Cron Jobs not working

Status
Not open for further replies.

GG-Xtreme

New Member
Messages
430
Reaction score
0
Points
0
I set up a cron job on my site to run a PHP script every hour, but all that happens is I get cron emails that say:
Code:
/bin/sh: /home/*****/public_html/*****/*****/*****.php: Permission denied
(the asterisks aren't really there, I just censored the URL) every hour. I can visit that URL in my browser and trigger the script just fine, so why am I getting a permission denied message?
Edit:
Edit: Okay, I fixed that, I just forgot to CHMOD 744 the file. Now my other problem is, how do I get cron jobs to execute a PHP script? It seems to be trying to execute it like a bash shell file.
Edit: Ok, I finally got it to work using 'php -q'. This thread can be closed/deleted now.
 
Last edited:
Status
Not open for further replies.
Top