CPANEL Cron Ajax Error – Fix

JTS

A very quick tip. If you are trying to use the Crontab section of a CPanel (reseller account, etc), you may have some issues trying to setup a simple wget when trying to just get a simple webpage. You’ll get some “AJAX ERROR” please refresh. Very annoying with no error message. In anycase, you can solve it by removing the HTTP:// part of the URL.

Before:

wget -q -O cron_exec.html http://domain.com/entry-form/cron.php >/dev/null 2>&1

After:

wget -q -O cron_exec.html www.domain.com/entry-form/cron.php >/dev/null 2>&1

About the author

During his twenty-five professional years, Mr. Silva has had experience in nearly every facet of the Information Technology industry. Ranging from advanced data mining / data visualization systems to running multi-state small business IT infrastructures, Mr. Silva has always provided precise and cost-effective strategies to meet any client’s needs. With his tremendous work ethic and “Can-Do” attitude, Mr. Silva has always met every challenge head-on and with intelligent determination. Mr. Silva is also a certified NAUI Advanced/Nitrox Diver, hoping to get a few more wrecks under his belt in the Atlantic.