Cron Job issues

software development

#1

I’m currently having an issue with trying to implement a cronjob that executes a single php file.

When i put the following information in the cronjob maker (the web based one) and wait for it to run, i get an error

-Command:
/usr/local/php5/bin/php /home/procyonserver/procyonserver.dreamhosters.com/scripts/clandbimport.php

-Error output via mail:
sh: /home/procyonserver/procyonserver.dreamhosters.com/scripts/clandbimport.php: Permission denied

When i run the command above in a shell i have no such issue, the script is executed without any issues.

Something similar happens when i make the php command part of an .sh script. We use this script to fetch a file via FTP once a month and then run the parsing php script. When the sh is started via SSH it gives the error:

Could not open input file /home/procyonserver/procyonserver.dreamhosters.com/scripts/clandbimport.php

Does anyone have an idea? This ran fine on our previous host =\


#2

I’m pretty sure we only have one user. Although i do use an email address to log into the panel and the account ‘procyonserver’ to log into the FTP/SSH.


#3

Are you sure you’re creating the cron job under the right user? The errors you’re describing are exactly what I’d expect to see if you created the cron jobs under a different user from the one who owns the files (procyonserver).