Skip to main content

Cron file setup on cPanel. (goDaddy)

 

 

 

 Step 1: Adding common setting. Choose settings as per your requirement.

 

 Step 2: Adding the command. (Main step.)

 

(Screenshot showing command to run the twice a day)

 

This actually worked for me.

php -f/home/yourCpanelUsername/public_html/CRON_FILE_PATH.php


THIS DIDN'T WORKED FOR "ME". (You can give it a try)

/home/yourCpanelUsername/public_html/CRON_FILE_PATH.php

/usr/local/bin/php -q /home/yourCpanelUsername/public_html/CRON_FILE_PATH.php

 

DO NOT TRY THIS

/usr/bin/php -q /home/yourCpanelUsername/public_html/CRON_FILE_PATH.php 

 

*Note:  

1. yourCpanelUsername is cPanel username used while actual login. (Working for goDaddy cPanel).

2. Please make sure cron file has executable permission set.

 

 

 

 

 

 

 

 

 

Comments