Cron Job permissions problem?

  • Answered
I've got a pretty simple cron job set up, thusly:
/usr/local/bin/php public_html/community/scripts/totalpaid.php >/dev/null 2>&1

It runs a script weekly that then writes to a file in another folder.

When it runs, however, I get this error:
Unable to create directory: /home/virtfs/username

I seem to feel this is a permissions error, but I'm not sure. Any ideas?
Hello jackanapes, Thank you for your question. I would check your file path, most likely you should use the full absolute path, instead of /usr/local/bin. For example: php -q /home/usern5/public_html/scripts/testrun.php It's also possible that something in the PHP code is trying to execute as a different user than the cron owner. If you have any further questions, feel free to post them below. Thank you, -John-Paul