I’m attempting to run a crontab, but I get an error from crontab every hour claiming permission has been denied for the lock and the script does not run. This is how I phrased it:
/usr/local/php5/bin/php
/home/username/domain/scripts/script.php
I tried adding the hidden directory the username actually lies in, adding a semicolon, etc., but I can’t find what’s wrong. Any ideas?
Oh, and the email is as follows:
From: Cron Daemon root@server.dreamhost.com
Subject: Cron username@server /usr/local/bin/setlock -n /tmp/cronlock.1581374.13951 sh -c $’/usr/local/php5/bin/php \012/home/username/domain/scripts/script.php’
Body:
sh: line 2: /home/username/domain/scripts/script.php: Permission denied
Edited for privacy of course.