Answers.Body: <p>On Siteground I use the wp-cli method as I find that more reliable:</p>
  
  <pre><code>/usr/bin/wp --user=USERNAME --url=https://EXAMPLE.ORG --path=/home/CPUSER/public_html --timezone="PHPTZ" civicrm api job.execute auth=0
  </code></pre>
  
  <p>replace CPUSER with the cpanel username , USERNAME with your WP Username, make sure the url is your site's canonical url and set the php timezone (eg America/New_York)</p>
  
  <p>you may have to login via ssh and do a <code>which -a wp</code> to dtermine the path to the wp-cli script.  It's always been <code>/usr/bin/wp</code> for me, but I would double check</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-10T23:13:21.400Z
Answers.Text: thanks that seemed to work, most of the jobs run but now i get an error should I ask it in a different question?
Answers.UserDisplayName: Zeak Smith
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-11T00:13:55.840Z
Answers.Text: I would think another question would be appropriate
Answers.UserDisplayName: Kevin Cristiano
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-10T22:36:47.127Z
Answers.LastActivityDate: 2017-02-10T22:36:47.127Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>I needs some help please, I am trying to set up a CRON job in the Cpanel of my Siteground hosting with the following string with the admin username and password for my WordPress install.</p>
  
  <pre><code> /usr/local/bin/php ~/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -s http://www.promedical.com.vu -u USERNAME -p PASSWORD -e Job -a execute
  </code></pre>
  
  <p>However is keep getting "<code>ERROR: Invalid username and/or password&lt;!-- deferred 0 scripts, deferred 0 styles &amp; minified html in 0 seconds --&gt;</code>"</p>
  
  <p>I have checked both multiple time and the username and password are correct, I am not where to from here?</p>
  
  <p>any help would be appreciated</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-10T22:49:23.493Z
Comments.Text: Have you made sure that there are no reserved or unsafe URL characters in your username or password. These include:& = + $ ? % , / : { } | ' #
  
  See also 'Managing Scheduled Jobs' at https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod
Comments.UserDisplayName: peterb
Tags: <wordpress><cron>
Title: Cron Job for WordPress on siteground
ThreadText: # Cron Job for WordPress on siteground
  
  (Asked by: username_0 on 2017-02-10)
  
  I needs some help please, I am trying to set up a CRON job in the Cpanel of my Siteground hosting with the following string with the admin username and password for my WordPress install.
  
  ```
   /usr/local/bin/php ~/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -s http://www.promedical.com.vu -u USERNAME -p PASSWORD -e Job -a execute
  
  ```
  
  However is keep getting "`ERROR: Invalid username and/or password<!-- deferred 0 scripts, deferred 0 styles & minified html in 0 seconds -->`"
  
  I have checked both multiple time and the username and password are correct, I am not where to from here?
  
  any help would be appreciated
  
  **Tags:** wordpress, cron
  
  > **Comments:**
  > **username_1**: Have you made sure that there are no reserved or unsafe URL characters in your username or password. These include:& = + $ ? % , / : { } | ' #  See also 'Managing Scheduled Jobs' at https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-02-10. Score: 1 | Accepted answer
  
  On Siteground I use the wp-cli method as I find that more reliable:
  
  ```
  /usr/bin/wp --user=USERNAME --url=https://EXAMPLE.ORG --path=/home/CPUSER/public_html --timezone="PHPTZ" civicrm api job.execute auth=0
  
  ```
  
  replace CPUSER with the cpanel username , USERNAME with your WP Username, make sure the url is your site's canonical url and set the php timezone (eg America/New\_York)
  
  you may have to login via ssh and do a `which -a wp` to dtermine the path to the wp-cli script. It's always been `/usr/bin/wp` for me, but I would double check
  
  > **Comments:**
  > **username_0**: thanks that seemed to work, most of the jobs run but now i get an error should I ask it in a different question?  
  > **username_2**: I would think another question would be appropriate  
  
  ---
  
  