Logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cronjob [2016/09/26 08:17]
sorin [What are CRON Jobs?]
cronjob [2017/03/31 11:29]
sorin [Why do you need a CRON Job?]
Line 1: Line 1:
-====== ​Cron Job Settings for thePHPfactory Extensions ======+====== ​CRON Job Settings for thePHPfactory Extensions ======
  
 \\ \\
Line 12: Line 12:
 CRON is a service provided by most hosting solutions – including **Godaddy, Dreamhost, Hostgator**,​ etc... that allows you to run scheduled jobs that perform regular cleanups, backups or other scripts that need to run from time to time.\\ CRON is a service provided by most hosting solutions – including **Godaddy, Dreamhost, Hostgator**,​ etc... that allows you to run scheduled jobs that perform regular cleanups, backups or other scripts that need to run from time to time.\\
 \\ \\
-==== Why would you need that?==== + 
 +==== Why do you need a CRON Job? ==== 
 \\ \\
 PHP is running only when users are visiting your site. You have no guarantee that at a specific time there will be an instance of PHP running on your web server. This is why you have to ensure this through running at specific times the needed PHP script. PHP is running only when users are visiting your site. You have no guarantee that at a specific time there will be an instance of PHP running on your web server. This is why you have to ensure this through running at specific times the needed PHP script.
  
 \\ \\
 +
 +CRON jobs are tasks that run at scheduled times, where usually this is a service offered by the hosting provider. These tasks make sure that certain extension tasks run at a specific time. 
 + This way you make sure that for instance your users get the notifications about upcoming expiring auctions or information regarding their watchlists.
 +
 +
 +CRON jobs are required to keep an extension working properly. For detailed information about what each component needs a CRON for, check the detailed link at the bottom of this article.
 +
 +
 +
  
 ==== Which "​thePHPfactory"​ Extensions need Cron jobs?​==== ​ ==== Which "​thePHPfactory"​ Extensions need Cron jobs?​==== ​
Line 30: Line 41:
 ==== What job should be executed for a specific Extension?​==== ​ ==== What job should be executed for a specific Extension?​==== ​
 \\ \\
-That depends on several factors: does your hosting service allow lynx, curl or wget to be executed in cron? If not, then you can execute the PHP script directly with the php binaries. At least one of these three options must be enabled for you in your hosting. If none works, then you should ask your hosting provider to enable at least one of it, since it’s a common practice for websites to use these techniques.+That depends on several factors: does your hosting service allow lynx, curl or wget to be executed in CRON? If not, then you can execute the PHP script directly with the php binaries. At least one of these three options must be enabled for you in your hosting. If none works, then you should ask your hosting provider to enable at least one of it, since it’s a common practice for websites to use these techniques.
  
 \\ \\
Line 46: Line 57:
 \\ \\
  
-If you use lynx or wget, the cron job will access the script URL as seen in any browser. For instance: ​+If you use lynx or wget, the CRON job will access the script URL as seen in any browser. For instance: ​
  
 \\ \\
Line 111: Line 122:
 lynx -accept_all_cookies –dump '​http://​[yoursite]/​index.php?​option=com_rbids&​controller=crontask&​pass=pass'​ lynx -accept_all_cookies –dump '​http://​[yoursite]/​index.php?​option=com_rbids&​controller=crontask&​pass=pass'​
  
-wget -O - -q '​http://​[yoursite]//​index.php?​option=com_rbids&​controller=crontask&​pass=pass'​+wget -O - -q '​http://​[yoursite]/​index.php?​option=com_rbids&​controller=crontask&​pass=pass'​
  
-curl --silent –compressed '​http://​[yoursite]//​index.php?​option=com_rbids&​controller=crontask&​pass=pass'​+curl --silent –compressed '​http://​[yoursite]/​index.php?​option=com_rbids&​controller=crontask&​pass=pass'​
 </​code>​ </​code>​
  
Line 207: Line 218:
 </​code>​ </​code>​
  
 +\\
 +**Events Factory**
 +\\
 +<​code>​
 +lynx -accept_all_cookies –dump '​http://​[yoursite]/​components/​com_eventsfactory/​cron_action.php?​pass=[yourpass]'​
 +
 +wget -O - -q '​http://​[yoursite]/​components/​com_eventsfactory/​cron_action.php?​pass=[yourpass]'​
 +
 +curl --silent –compressed '​http://​[yoursite]/​components/​com_eventsfactory/​cron_action.php?​pass=[yourpass]'​
 +</​code>​
 \\ \\
  
Line 254: Line 275:
   * jAnswers Factory   * jAnswers Factory
   * Love Factory   * Love Factory
 +  * Events Factory
   * Social Factory   * Social Factory