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) »
  • [Solved] Running Cron and getting "Could not open input file"
Pages: [1]

Author Topic: [Solved] Running Cron and getting "Could not open input file"  (Read 11082 times)

undrwatrdan

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.6.9
  • CMS version: Joomla 3.4.5
  • MySQL version: Don't know
  • PHP version: 5.4
[Solved] Running Cron and getting "Could not open input file"
December 15, 2011, 10:54:16 am
Hi,
I am a new user to Civicrm and am setting up CiviMail.  I have followed the directions in http://en.flossmanuals.net/CiviCRM/SystemConfiguration/ to configure the settings and searched the threads for help with this issue, but have been unable to resolve.

The issue I face is with the Cron.  I am using the Cron Job tool in Cpanel to set up the Cron.

The cron I have tried running is */5   *    *    *         *  /usr/local/bin/php /home/divingr/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<login_name>&pass=<password>&key=<key>
                                                                 
I have it set to send an email when the cron completes and I get the following message:
Could not open input file: /home/divingr/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<login_name>
The permissions on the folders /components/com_civicrm/civicrm/bin/ and the civimail.cronjob.php file are 777
If I change the permissions on /admistrators to 777, I get an Internal Server Error.

I can run the following from IE7 and the file executes and sends the scheduled mail.
http://www.domain.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<login_name>&pass=<password>&key=<key>

I have tried removing everything before /public_html and removing everthing before /php with no luck.

I have tried to run the cron with :
http://www.domain.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<login_name>&pass=<password>&key=<key>

and get the following message
/bin/sh: http://www.domain.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<login_name>: No such file or directory

Thanks in advance!  Any help would be greatly appreciated. 

Danny
« Last Edit: December 16, 2011, 12:45:13 pm by undrwatrdan »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Running Cron and getting "Could not open input file"
December 15, 2011, 03:23:55 pm
You can ask your host why the file won't run, or you can use

wget http://yoururl...

for the cron job. Note the wget before the URL. You may need to enclose the URL in single quotes also.
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.

undrwatrdan

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.6.9
  • CMS version: Joomla 3.4.5
  • MySQL version: Don't know
  • PHP version: 5.4
Re: Running Cron and getting "Could not open input file"
December 16, 2011, 12:44:43 pm
Thanks, that did the trick.  The Cron is now running and sending the mail.  It's odd, the first time 4 times the cron ran with the wget command, I got a 500 Internal server Error, so I reset the Cron to run 1 time per year and went to bed.  This afternoon, I set the cron to run every 5 minutes and it's running as it should and sending mail to test groups.

Again thanks for your help!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • [Solved] Running Cron and getting "Could not open input file"

This forum was archived on 2017-11-26.