We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Cron job on GoDaddy cpanel shared hosting | Forum

fouad
fouad Mar 11 '15
For the benefit of the community and because I could not find a working example on the forum of how to configure cron jobs on GoDaddy's lynux cpanel shared hosting, here is how I managed to configure the cron job:


/usr/local/bin/php -q /home/accountname/public_html/[full path to file]


It worked for me and hope it works for those on similar server setup.

ross Team
ross Mar 11 '15
Thanks fouad for sharing. Hope Oxwall community members will find it helpful. 
Mauricio
Mauricio Dec 2 '15
Thanks alot, it worked for me too after 12 hours of trying, with this line:

/usr/local/bin/php -q /home/youraccountname/public_html/_includes-funciones/delete_fotos_cronjob.php


Barrington
Barrington Nov 4 '16
what is the best con job config to use on GODADDYS lynux setup?


 -q -O /dev/null http://localrondevoo.com/ow_cron/run.php


wget -q -O /dev/null http://localrondevoo.com/ow_cron/run.php



lynx http://localrondevoo.com/ow_cron/run.php


http://localrondevoo.com/ow_cron/run.php



curl http://localrondevoo.com/ow_cron/run.php


http://localrondevoo.com/ow_cron/run.php



/home/http://localrondevoo.com/public_html/ow_cron


/home/http://localrondevoo.com/public_html/ow_cron/run.php


http://localrondevoo.com/ow_cron/run.php



/usr/local/bin/php -q /home/http://localrondevoo.com/ow_cron/run.php


/usr/local/bin/php -q /home/http://localrondevoo.com/public_html/ow_cron/run.php


dave Team
dave Nov 4 '16
i think -O is not used anymore, i rearly see it now days, you can probably remove it.  

 -q means quiet mode no output.  


I have always used this (for cpanel other hosts) 


php -q /home/username/public_html/ow_cron/run.php


if you have Oxwall in a sub dir then of course youll have to toss that in the mix also 


php -q /home/username/public_html/subdirectory/ow_cron/run.php


i wonder why godaddy does not standardize it with the rest of the hosts, but then again do they standardize anything at all, no! lol 


hope that helps... 

The Forum post is edited by dave Nov 4 '16
Chris_W
Chris_W Nov 5 '16
I've always found

/usr/bin/php /home/username/public_html/some-folder/ow_cron/run.php >/dev/null 2>&1

Works best for me.
Barrington
Barrington Mar 17
So I have to change the accountname to localrondevoo ? When I the the con job is what your saying? When I paste this con job on Godaddy con job?


/usr/local/bin/php -q /home/accountname/public_html/[full path to file]

Chris_W
Chris_W Mar 17
Yes the account name is the one you got when you signed up with Godaddy.


If you have more than one domain set up on the server the cron url would be something like:


/usr/bin/php /home/username/domain-name.com/some-folder/ow_cron/run.php >/dev/null 2>&1


If the site is in the root of the domain, leave out the '/some-folder' part.


There is a free Oxwall plugin in the store to test if your cron job is working.

https://developers.oxwall.com/store/item/1060

Cunha
Cunha Mar 19
  1. Go to your GoDaddy product page.
  2. Under Web Hosting, next to the Linux Hosting account you want to use, click Manage.
  3. In the account Dashboard, click cPanel Admin.
  4. In the cPanel Home page, in the Advanced section, click Cron Jobs.
  5. In the cPanel Cron Jobs page, enter the necessary information. ...
  6. Click Add New Cron Job visit myprepaidcenter
The Forum post is edited by Cunha Mar 21