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 cron jobs in Joomla
Pages: [1]

Author Topic: Civimail cron jobs in Joomla  (Read 1699 times)

combrains

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 3.1.x
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Civimail cron jobs in Joomla
February 14, 2012, 12:20:25 am
Hi All,

I'm having issues setting up my Civimail cron (as with many others :)  )  I'm using Joomla 2.5.  Most of the issues/fixes on here (including the documentation in the book) outline the cli process for Drupal but not for Joomla.  I would like to be able to configure CiviMail to use the PHP cli if possible but it is not immediately clear from the docs if this is possible or what params I need to set. I also do not currently have permission to execute wget.

So, I can trigger my mailings manually from the browser with no issues.  However, if I run the following command from the command line, I get the following output:

Code: [Select]
/usr/local/bin/php /home/ploc2012/domains/ploc.ews.net.nz/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php -sdefault -ucrmuser -pcrmpass

Warning: require_once(bin/cli.php): failed to open stream: No such file or directory in /home/ploc2012/domains/ploc.ews.net.nz/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php on line 106

Fatal error: require_once(): Failed opening required 'bin/cli.php' (include_path='.:/usr/local/lib/php') in /home/ploc2012/domains/ploc.ews.net.nz/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php on line 106

All my file/folder perms are 777 at the moment (for testing).  Where is this likely going wrong.

Any help to begin troubleshooting would be appreciated.

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: Civimail cron jobs in Joomla
February 14, 2012, 07:02:05 am


Might want to try

Code: [Select]
cd /home/ploc2012/domains/ploc.ews.net.nz/public_html/administrator/components/com_civicrm/civicrm ; /usr/local/bin/php bin/civimail.cronjob.php -sdefault -ucrmuser -pcrmpass

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

johnsopaul

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: 2.5
  • MySQL version: 5.0
  • PHP version: 5.3
Re: Civimail cron jobs in Joomla
February 15, 2012, 12:26:21 am
Yes I have the same problem.  i go to this doc
wiki.civicrm.org/confluence/display/CRMDOC41/Managing+Scheduled+Jobs

which suggests all the old .php are deprecated and we should use cli.php which will execute all or individual scripts. 

only trouble is it doesn't.  the doc says that cli.php will execute everything set up in "Administer > System Settings > Scheduled Jobs" - which doesn't exist in Joomla 2.5 with civicrm 4.0.1.  perhaps this is the problem.

i can get the mail sent out using
<site>/administrator/index.php?option=com_civicrm&task=civicrm/mailing/queue&reset=1"

which was suggested here

wiki.civicrm.org/confluence/display/CRMDOC41/CiviMail+Installation#CiviMailInstallation-SettingUptheSMTPConfiguration"

Paul


johnsopaul

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: 2.5
  • MySQL version: 5.0
  • PHP version: 5.3
Re: Civimail cron jobs in Joomla
February 15, 2012, 12:38:50 am
all the cli.php stuff aside Donald solution works too! 

thanks

combrains

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 3.1.x
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: Civimail cron jobs in Joomla
February 15, 2012, 01:35:54 am
Doh *facepalm*  Never thought to cd into the dir before executing the script.

Thanks Lobo :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Civimail cron jobs in Joomla

This forum was archived on 2017-11-26.