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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron error for CiviMail on CiviCRM 2.2/ Drupal 6/ CPanel
Pages: [1]

Author Topic: Cron error for CiviMail on CiviCRM 2.2/ Drupal 6/ CPanel  (Read 1101 times)

jsp_1983

  • Guest
Cron error for CiviMail on CiviCRM 2.2/ Drupal 6/ CPanel
August 01, 2009, 04:48:35 pm
Hi,

I'm trying to get a cron job set up so that CiviMail processes sending out mailing list e-mails, but am getting the following e-mail report back after the cron job has run:

/bin/sh: /usr/bin/wget: Permission denied

I'm running CiviCRM 2.2 on Drupal. The cron job was set up via CPanel.

This is the line I used for the cron job:

wget 'http://websiteaddress.co.uk/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=username&pass=password&key=key'

I also changed to permissions of civimail.cronjob.php to 755, but this didn't appear to make a difference.

Any ideas?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cron error for CiviMail on CiviCRM 2.2/ Drupal 6/ CPanel
August 01, 2009, 05:07:22 pm

this is more of a question to your hosting provider. This does not seem related to CiviCRM

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jsp_1983

  • Guest
Re: Cron error for CiviMail on CiviCRM 2.2/ Drupal 6/ CPanel
August 02, 2009, 05:42:05 am
Okay, I asked my hosting provider, who said that wget is disabled because of the possibility of security compromises etc and couldn't understand why wget was being used to run the script.

As an alternative, it was suggested that I should use a 'php' or 'php -q' command instead of wget, like so:

Code: [Select]
php -q 'http://websiteaddress.co.uk/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=username&pass=password&key=key'
But this results in the following result in the e-mailed cron job report:
Code: [Select]
No input file specified.
The mail queue isn't processed as a result of this, however if I put the http://websiteaddress.co.uk/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=username&pass=password&key=key address in my browser, it processes the mail queue.

My hosting provider said that the php or php -q commands should work as standard for processing scripts, but suggested that I ask back here about what format command would be required in this instance.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cron error for CiviMail on CiviCRM 2.2/ Drupal 6/ CPanel
August 02, 2009, 07:08:25 am

sorry, we currently only know about curl/wget to execute cron jobs. i could not find an option for "-q" in the php man page (or php --help)

u'll need to do your own research and figure out a workaroud

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron error for CiviMail on CiviCRM 2.2/ Drupal 6/ CPanel

This forum was archived on 2017-11-26.