Answers.Body: <p>Are you on drupal for the CMS? in that case, using the drush option is easier to set up than the cli.php in my experience (you don't have to give credentials, and in general, deals better with the authentication of the cron user)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-12T00:11:14.380Z
Answers.Text: This is a Joomla site.
Answers.UserDisplayName: Vietyank
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-11T07:52:50.087Z
Answers.LastActivityDate: 2015-05-11T07:52:50.087Z
Answers.UserDisplayName: Xavier
Answers.Body: <p>I used the example for "Using the shell (CLI PHP) via Crontab" and got that to work so this can be closed.</p>
  
  <p>I really don't know what else I can say. I used the sample script for "Using the shell (CLI PHP) via Crontab", set up the parameters correctly and it worked</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-13T08:52:54.607Z
Answers.Text: Can you detail what you did to make it work (and maybe copy paste the relevant points in the wiki) and accept your answer to close the question (by accepting your answer, you close the question)
Answers.UserDisplayName: Xavier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-15T02:24:27.500Z
Answers.Text: Agree that saying what you did, linking to the instructions, and accepting this answer is what's needed to "close" this. @Vietyank can you please update this answer with those things?
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-13T03:05:48.357Z
Answers.LastActivityDate: 2015-05-15T03:56:53.457Z
Answers.LastEditDate: 2015-05-15T03:56:53.457Z
Answers.UserDisplayName: Vietyank
Body: <p>CiviCRM 4.6.0</p>
  
  <p>I have tried setting up the cron job to process the mailing scheduled job using both the php cli method and the URL with wget.</p>
  
  <p>In the first case, I can get the cli.php to run from the command line and the mail queue is processed but when I try to run the same job from cron, it fails with an invalid username and/or password error. The username and password are exactly as specified when run from the command line (copied and pasted).</p>
  
  <p>With the URL method, I cannot get the job to process the queue either from the command line or from the cron job. The mail remains in the queue.</p>
  
  <p>The cron jobs are being set up in the CPanel.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-11T14:28:21.390Z
Comments.Text: Is it possible that you have a character in your password that needs to be URL-encoded?  Like an ampersand, perhaps?
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-11T19:13:41.710Z
Comments.Text: Did you check the permissions http://wiki.civicrm.org/confluence/display/CRMDOC/CiviMail+Installation#CiviMailInstallation-CMSUserandRole ?
Comments.UserDisplayName: Tim Otten
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-12T00:10:35.217Z
Comments.Text: The password has no characters that need to be URL encoded
Comments.UserDisplayName: Vietyank
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-12T00:11:31.963Z
Comments.Text: Permissions are okay.
Comments.UserDisplayName: Vietyank
Tags: <civimail><cron-job>
Title: CiviCRM cron job not processing scheduled jobs
ThreadText: # CiviCRM cron job not processing scheduled jobs
  
  (Asked by: username_0 on 2015-05-11)
  
  CiviCRM 4.6.0
  
  I have tried setting up the cron job to process the mailing scheduled job using both the php cli method and the URL with wget.
  
  In the first case, I can get the cli.php to run from the command line and the mail queue is processed but when I try to run the same job from cron, it fails with an invalid username and/or password error. The username and password are exactly as specified when run from the command line (copied and pasted).
  
  With the URL method, I cannot get the job to process the queue either from the command line or from the cron job. The mail remains in the queue.
  
  The cron jobs are being set up in the CPanel.
  
  **Tags:** civimail, cron-job
  
  > **Comments:**
  > **username_1**: Is it possible that you have a character in your password that needs to be URL-encoded?  Like an ampersand, perhaps?  
  > **username_2**: Did you check the permissions http://wiki.civicrm.org/confluence/display/CRMDOC/CiviMail+Installation#CiviMailInstallation-CMSUserandRole ?  
  > **username_0**: The password has no characters that need to be URL encoded  
  > **username_0**: Permissions are okay.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2015-05-11. Score: 1
  
  Are you on drupal for the CMS? in that case, using the drush option is easier to set up than the cli.php in my experience (you don't have to give credentials, and in general, deals better with the authentication of the cron user)
  
  > **Comments:**
  > **username_0**: This is a Joomla site.  
  
  ---
  
  ### Answer by username_0 on 2015-05-13. Score: 1
  
  I used the example for "Using the shell (CLI PHP) via Crontab" and got that to work so this can be closed.
  
  I really don't know what else I can say. I used the sample script for "Using the shell (CLI PHP) via Crontab", set up the parameters correctly and it worked
  
  > **Comments:**
  > **username_3**: Can you detail what you did to make it work (and maybe copy paste the relevant points in the wiki) and accept your answer to close the question (by accepting your answer, you close the question)  
  > **username_4**: Agree that saying what you did, linking to the instructions, and accepting this answer is what's needed to "close" this. @username_0 can you please update this answer with those things?  
  
  ---
  
  