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:28]
sorin [What are CRON Jobs?]
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 do you need a CRON Job? ====
 +
 +\\
 +
 +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.
 +
 +
 ==== Why would you need that?​==== ​ ==== Why would you need that?​==== ​
 \\ \\
Line 30: Line 42:
 ==== 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 58:
 \\ \\
  
-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 123:
 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 219:
 </​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 276:
   * jAnswers Factory   * jAnswers Factory
   * Love Factory   * Love Factory
 +  * Events Factory
   * Social Factory   * Social Factory