I am getting this error when I try to run a CakePHP 2.1 Shell from a cron job:
/bin/sh: /home/[other-folders]/lib/Cake/Console/cake: Permission denied
This is the code I’ve been using for almost a year with CakePHP 1.3.7 and it worked well. What could the problem be? I’ve checked the permissions on the cake file, and it is 755, just like the cake file I had in 1.3.7. Thanks!
Are all the directories in the path set to at least +x for the user executing the cron job? If you can’t at least execute the directories above
cake, you won’t be able to execute the program.