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) »
  • Help Please with cron set up
Pages: [1]

Author Topic: Help Please with cron set up  (Read 851 times)

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Help Please with cron set up
March 04, 2013, 02:42:27 pm
Hi All,
Can you please help me with the cron set up? My server admin is helping me set up a cron job for sending out the emails via civimail. He is not familiar with the set-up of the cron job on civicrm (and he won't learn to do that since we are hosting on the university's server and they are not supposed to support this system). I am not familiar with the cron set-up on the server side. So, I just read the documentation serveral times and am not sure I understood the instructions correctly. I asked him to run this script on the server:
Code: [Select]
$ php bin/cli.php -u myusername -p mypassword -e Job -a execute. He did, but got this output:
Code: [Select]
php /usr/local/apache2/htdocs/drupal7/sites/all/modules/civicrm/bin/cli.php -u myusername -p mypassword-e Job -a execute

Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0

I have no idea what's wrong here. Can anybody PLEASE help and tell me what I did wrong there?

Thank you SO MUCH!

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: Help Please with cron set up
March 04, 2013, 04:51:21 pm

most likely those warnings come from your php.ini on your server. Pretty sure neither drupal nor civi uses those php directives

U'll have to modify the php.ini setting. but, those are just warning and the script probably continues executing

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

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Help Please with cron set up
March 05, 2013, 06:18:37 am
Thank you very much for your response, lobo! I checked the civimail "Scheduled and sent mailings", it seemed like the email DID get sent because the status is "completed". But I did not get the email. Very interesting.

So, the script I gave to my admin is correct? My civicrm version is 4.2.4 with drupal 7.16.

Thank you again!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help Please with cron set up
March 05, 2013, 06:19:50 am
Yes, your script is correct. As Lobo said, those are just warnings.

Does the mailer note any failed deliveries?
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.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Help Please with cron set up
March 05, 2013, 01:45:18 pm
Thank you, Hershel. There is no any failed delivery in the log. Would that be related to the incomplete bounce processing settings? In the Mail acocunts page, I only had Name (my org name), Email domain (myorg.edu), Protocol (IMAP), and Used for (Bounce processing) filled. Should I complete the info here before it can execute correctly?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help Please with cron set up
March 06, 2013, 03:28:07 am
Yes, without all settings (like password etc.) the bounce processor will not work.
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.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Help Please with cron set up
March 06, 2013, 09:59:56 am
Hi Hershal, are the password and username the ones of the mail account, like my gmail account and the password?
Please forgive my ignorance, I don't know much about this setting and am struggling with what information I should put in which box on the Mail Accounts page even after reading the instructions several times--they are very confusing to me :(

Thank you!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help Please with cron set up
March 06, 2013, 10:16:08 am
Yes, you need to put in the email server, account and password for the bounce account.
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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Help Please with cron set up

This forum was archived on 2017-11-26.