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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Civimail set to hourly, nothing happens.
Pages: [1]

Author Topic: Civimail set to hourly, nothing happens.  (Read 701 times)

LanceHaverkamp

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: wordpress 4.1
  • MySQL version: 5.5.41-37.0
  • PHP version: 5.3.28
Civimail set to hourly, nothing happens.
February 16, 2015, 01:38:59 am
I have enabled the scheduled job "process_mailing", and set it to hourly...nothing happens.
Test messages arrive perfectly, and I can manually trigger a batch to send, but automation fails every time.

Having exhausted every way I can think of searching...

If I need to enter something in cron to get the scheduled jobs to fire--What do I set?   "Scheduled jobs" configures nothing in CPanel's Cron settings (like phplist does), I can't find anything in the documentation to tell me if that's supposed to happen with CiviCRM--but I'm suspecting not.   Wiki says "A 'run frequency' can be set for each enabled job, allowing you to configure a single "master" cron task to trigger ALL enabled CiviCRM jobs"  But Wiki fails to give me any idea, whatsoever, as to the command that needs to be passed to cron, to accomplish either single, or multiple job runs.  I keep reading phrases like "check with your admin about scheduling cron tasks."

I'm a volunteer, non-professional, admin for a few small non-profits, using Wordpress 4.1, on a CPanel system, with the current (from wordpress) 4.4 CiviCRM plugin.

Thanks,
Lance

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civimail set to hourly, nothing happens.
February 16, 2015, 01:56:06 am
This page describes the various options of what you need to put in your cron:

http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-Command-
lineSyntaxforRunningJobs

if you have php cli on your server, that's the one I'd recommend you to use. It's way easier if you have ssh access, as you can test the php command first and be sure it works, testing from cron is a PITA.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Civimail set to hourly, nothing happens.
February 16, 2015, 07:21:13 am
Hi Lance,

I'm very curious about what you said, that phplist can automatically set up a cron job in CPanel.  I searched but couldn't find any documentation of this.  I didn't realize this was something a program could do - but if it is, that's a great feature that CiviCRM should support!  Can you please point me to more info on this?

Also - it sounds like you're using CiviCRM on shared hosting.  A word of warning - shared hosting often lacks the "oomph" to run CiviCRM quickly, especially if you have more than a token number of contacts.  If you're having performance issues, consider a VPS!

Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

LanceHaverkamp

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: wordpress 4.1
  • MySQL version: 5.5.41-37.0
  • PHP version: 5.3.28
Re: Civimail set to hourly, nothing happens.
February 16, 2015, 08:52:37 am
Thanks for the fast replies.  I really appreciate it!
I read that page several times.  Like most everything I've seen with CiviCRM, it assumes I'm a career admin, not a slightly techy volunteer.
Perhaps it's CPanel's Softalicious app installer that's setting-up the cron job for phplist, all I know is that phplist-specific cron entries were there & I didn't do it.

So if I hack this line, /path/to/php /path/to/civcrm/module/bin/cli.php -s site -u user -p password -e Job -a execute

so it looks something like,

/usr/local/bin/php /public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php  -s http://lpepc.org -u someadmin -p password -e Job -a execute

do I just enter that into the cron setup page in CPanel, to run every 15 min?

Is that about right?

Thanks

Small non-profits with no paid staff do no have full-time sys-admin's who are looking for 5 ways to tweak things from the command line of a server.
We are looking for software with the most common default settings enabled by default. 
Maybe 98% of small non-profits are using CPanel or equivalent; we have no idea how to get to a command like (nor do we want to know).

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civimail set to hourly, nothing happens.
February 16, 2015, 09:04:01 am
Quote from: LanceHaverkamp on February 16, 2015, 08:52:37 am
Perhaps it's CPanel's Softalicious app installer that's setting-up the cron job for phplist, all I know is that phplist-specific cron entries were there & I didn't do it.

That's correct--no PHP-based installer can create a cron job.

Quote from: LanceHaverkamp on February 16, 2015, 08:52:37 am
So if I hack this line, /path/to/php /path/to/civcrm/module/bin/cli.php -s site -u user -p password -e Job -a execute

so it looks something like,

/usr/local/bin/php /public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php  -s http://lpepc.org -u someadmin -p password -e Job -a execute

do I just enter that into the cron setup page in CPanel, to run every 15 min?

Something like that, yes. Part of the issue is that each host is different. I recommend you ask yours for assistance using their server.

Quote from: LanceHaverkamp on February 16, 2015, 08:52:37 am
Maybe 98% of small non-profits are using CPanel or equivalent; we have no idea how to get to a command like (nor do we want to know).

Our wiki is meant for everyone to use and enjoy. There are examples on that page for people who do use command line as well as those who don't. :)
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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Civimail set to hourly, nothing happens.

This forum was archived on 2017-11-26.