Web Hosting

Singapore Web Hosting

With 24/7 Super Support
Web Hosting Singapore Blog    Web Hosting Singapore Contact Us    Web Hosting Singapore Client Login
Singapore Dedicated Web Hosting
Email: Call: +65 6288-6264
 
Support Center » Knowledgebase » How to setup cron job in cpanel

Web hosting Knowledge Base/FAQ

 How to setup cron job in cpanel
Solution Many a times, users will place the URL inside the cron job, and always wonder why the cron job does not work. What you may have done is putting just the URL into the cron command, for example:

0 0 * * * http://www.websiteurl.com.sg/pathtoyourfile.php

The above command will not work, because the cron job system will not understand what it is required to do, here are 2 popular methods of running a cron job via cPanel.

For example:

0 0 * * * php -q /home/youraccountusername/public_html/pathtoyourfile.php

0 0 * * * wget -q -O/dev/null http://www.websiteurl.com.sg/pathtoyourfile.php



Article Details
Article ID: 99
Created On: 05 Jul 2011 10:38 PM

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options

 

Singapore Web Hosting With A Difference - Click To Read More...
Singapore Web Hosting With A Difference - Click To Read More...