Setup Cron on HostGator
IMPORTANT: These notes ONLY apply to people using HostGator or SEOhosting hosting accounts.
HostGator and .htaccess…
When it comes to running simple cron commands on your HostGator hosting account, you’ll need to place a .htaccess file in the cgi-bin of each account.
This .htaccess file must be placed in the public_html directory of each website hosted on a shared hosting package.
If you have a reseller account, you only need to put it in the main cgi-bin. This will then eliminate your need to duplicate the file for each individual public_html directory.
Editing your .htaccess File…
Here are the commands to place inside your .htaccess file if you are using HostGator:
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
Step-by-Step Screen Shots: Setting up Cron
Here are some screenshots to assist in setting up cron on HOSGATOR HOSTING accounts.
NOTE: You may click on the below images to view larger screen shots.
1. From CPANEL Homepage:
2. Cron Jobs page:
3. Set 1. Email address, 2. Put command cron command we provide, and 3. Set the schedule.
4. Done
The Cron Code
The following commands seem to work with HostGator and my plugins…
php /home/yourfolder/public_html/yoursite.com/index.php
action=cl_cron cron_code=0123456
php -q /home/yourfolder/public_html/yoursite.com/index.php
action=cl_cron cron_code=0123456
…where “yourfolder” = your sites folder and where “0123456″ is your cron code found in the ‘Options’ tab of the relevant plugin (ie., WP Scraper or WP Feeder, etc)…
Additional questions? Email support for more help.
Tags: Cron, HostGator, Hosting, How to's, Tutorials, WordPress Cloaker, WordPress Feeder, WordPress Scraper





















