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) »
  • Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
Pages: [1]

Author Topic: Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function  (Read 1868 times)

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
May 07, 2011, 10:18:45 am
Have tried and tried for days now! Must not let this beat me!!! ;D

Trial #1
cron -e php5 /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php -uusername  -ppassword -ssitekey
resulted in   /bin/sh: cron: command not found
_________________________________________
Trial #2
php5 /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php -uusername  -ppassword -ssitekey
Resulted in    Warning: require_once(./civicrm.config.php): failed to open stream: No such file or directory in /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php on line 107

Fatal error: require_once(): Failed opening required './civicrm.config.php' (include_path='packages/:.:/usr/lib/php:/usr/local/lib/php') in /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php on line 107
_________________________

Trial #3
php5 /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php -uusername  -ppassword -ssitekey
resulted in:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/lib/php/PEAR.php:735) in /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php on line 811
____________________________

What am I doing wrong???
Thank you in advance
Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
May 27, 2011, 05:28:25 pm
There seem to be several issues here. I would recommend working through http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviMail+Installation#CiviMailInstallation-SettingUptheCronJob from the start.

Trial 1: why are you trying to execute cron rather than setting up a job using crontab?

Trial 2: I'd search for the term civicrm.config.php in the wiki to see if you are supposed to configure it - I see that if you have drush installed for Drupal it's not necessary, but you're using Joomla! so perhaps it is.

Trial 3: as you are executing the same command as Trial 2, I'm not sure why you are getting a different message. Did you change something between 2 & 3?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
May 28, 2011, 02:58:05 pm
Based on the error of #2, I would suggest you try the wget method of cron, as opposed to the php method. You will find details about it in the wiki, as above.
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) »
  • Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function

This forum was archived on 2017-11-26.