Answers.Body: <p>This should help you, </p>
  
  <p><a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod</a></p>
  
  <p>You can follow either of the methods mentioned on that page, depending on how your server is set up.</p>
  
  <p>HTH,
  Edsel</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-21T11:21:11.437Z
Answers.Text: Hi Edsel! Thanks, I revisited the wiki and now I figured out how to ensemble the command! `/usr/local/bin/php ~/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -s SITE -u USER -p PASSWORD -e Job -a execute`!
Answers.UserDisplayName: Xavier Moya
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-22T07:16:31.633Z
Answers.Text: Yep, that should do it :)
Answers.UserDisplayName: EdzeLopeZ
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-21T09:53:22.570Z
Answers.LastActivityDate: 2016-09-21T09:53:22.570Z
Answers.UserDisplayName: EdzeLopeZ
Body: <p>I'm working on <strong>my first installation of civicrm</strong> (with wordpress) ever and I have a trouble configuring the cronjob. My host is on Siteground and I wolud like to create the cronjob from cPanel.</p>
  
  <p>Before adding the command in cPanel, I've logged in via ssh. <a href="https://civicrm.stackexchange.com/questions/10309/scheduled-cron-jobs-not-running">By following a previous thread</a>, I've figured out to write this line:</p>
  
  <p><code>/usr/local/bin/php public_html/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Job.php</code></p>
  
  <p>But it throughts this <strong>Fatal error</strong>:</p>
  
  <p><code>Fatal error: Class 'CRM_Core_Page_Basic' not found in /home/amicsdel/public_html/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Job.php on line 37</code></p>
  
  <p>Any idea about how to solve it? Where this class is suposed to be declared?</p>
  
  <p>Thanks!</p>
  
Tags: <wordpress><cron-job>
Title: Configuring cronjob in wordpress installation (siteground)
ThreadText: # Configuring cronjob in wordpress installation (siteground)
  
  (Asked by: username_0 on 2016-09-21)
  
  I'm working on **my first installation of civicrm** (with wordpress) ever and I have a trouble configuring the cronjob. My host is on Siteground and I wolud like to create the cronjob from cPanel.
  
  Before adding the command in cPanel, I've logged in via ssh. [By following a previous thread](https://civicrm.stackexchange.com/questions/10309/scheduled-cron-jobs-not-running), I've figured out to write this line:
  
  `/usr/local/bin/php public_html/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Job.php`
  
  But it throughts this **Fatal error**:
  
  `Fatal error: Class 'CRM_Core_Page_Basic' not found in /home/amicsdel/public_html/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Job.php on line 37`
  
  Any idea about how to solve it? Where this class is suposed to be declared?
  
  Thanks!
  
  **Tags:** wordpress, cron-job
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-21. Score: 1 | Accepted answer
  
  This should help you,
  
  <https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod>
  
  You can follow either of the methods mentioned on that page, depending on how your server is set up.
  
  HTH,
  Edsel
  
  > **Comments:**
  > **username_0**: Hi Edsel! Thanks, I revisited the wiki and now I figured out how to ensemble the command! `/usr/local/bin/php ~/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -s SITE -u USER -p PASSWORD -e Job -a execute`!  
  > **username_1**: Yep, that should do it :)  
  
  ---
  
  