CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • civimail.cronjob.php won't fire with installation as per guide - drupal
Pages: [1]

Author Topic: civimail.cronjob.php won't fire with installation as per guide - drupal  (Read 916 times)

DylanRao

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
civimail.cronjob.php won't fire with installation as per guide - drupal
August 22, 2011, 08:35:49 am
As far as I can tell I've done everything by the books but when I attempt to run the script manually the cronjob clearly won't work.

I have created /public_html/sites/all/modules/civicrm/bin/civicrm-wgetrc which contains:
post-data=name=username&pass=password&key=site-key (with username, password and site-key containing the real info)

When I run crontab -l it shows:
WGETRC=/actual/path/to/civicrm-wgtrc
*/5 * * * * linuxuser wget -O - q -t 1 http://sitename.com/sites/all/modules/civicrm/bin/civimail.cronjob.php

Which is all as listed in the installation guide however if I try to manually run:
linuxuser wget -O - q -t 1 http://sitename.com/sites/all/modules/civicrm/bin/civimail.cronjob.php
I get:
-bash: linuxuser: command not found
So I try:
wget -O - q -t 1 http://sitename.com/sites/all/modules/civicrm/bin/civimail.cronjob.php
and get:
ERROR: You need to send a valid user name and password to execute this file

Which makes me question if the cronjob will ever work. Is there a better way to test/varify/fix this?
Thanks



Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: civimail.cronjob.php won't fire with installation as per guide - drupal
August 22, 2011, 01:08:17 pm
Try:

Code: [Select]
wget -O - q -t 1  export WGETRC=civicrm-wgetrc http://sitename.com/sites/all/modules/civicrm/bin/civimail.cronjob.php
or:

Code: [Select]
wget -O - q -t 1  'http://sitename.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=username&pass=password&key=site-key'
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • civimail.cronjob.php won't fire with installation as per guide - drupal

This forum was archived on 2017-11-26.