How to set a cronjob on Hostgator?

If you have a hosting account on Hostgator, you can use cronjobs from Cpanel.

Login to your main cpanel or the cpanel of any domain you got under your main account.

Search for “cronjob” and enter the cronjob page.

You will see there “Add New Cron Job”.

Enter the following in the command row: /usr/bin/lynx http://yourwebsite.com/page.php

And set once a day or whatever you like.

That is all, the cronjob will now do a background visit on that page you set up there.

If that doesn’t work for you, use this alternative code.

wget -O – http://website.com/page.php >/dev/null 2>&1

ADD A COMMENT: