Permission denied error with godaddy cron job
Cron is a Linux command tool that allows you to schedule tasks unattended at a specified time interval. There are several ways to schedule commands to run. You can run any available command or script like php, perl and shell script as a Cron Job. It run specified command and send output to the user or email id specified in the configuration.
This is common error godaddy user face when they run Cron job first time. The Godaddy Cron Manager only ask for the script file to run. You need to give executable file path separately otherwise php file will be run with shell script and produce permission denied error. To over come this problem you simply need to use php executable path as first argument and full path of the script as second argument. Here is the correct Godady executable path.
Shell: /bin/sh
Perl : /usr/bin/perl
PHP4: /web/cgi-bin/php
PHP5: /web/cgi-bin/php5
Exmple Cron Job:
/web/cgi-bin/php /home/content/youraccount/html/run_cron.php
Read Related Post
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.













































Leave a Reply