I have been trying to get CiviCRM's cron jobs to work with a bash script, but nothing is happening. It should be starting a mailing queue I've created as a test. I was doing this on shared hosting with curl, but I read in the queues that Barracuda blocks wget/curl to prevent remote DoS attacks, so I don't see another way to call the script. The php.ini file in usr/local/lib/php.ini is unchanged from default, i.e. error reporting is set to ALL. This is a standard install of latest Barracuda stable on an Ubuntu 10.4 Linode.

Here is the script call:

cd /data/disk/octopusadmin/platforms/pcfs-stage/sites/all/modules/civicrm;php bin/civimail.cronjob.php -smysite.org -umylogin -pmypassword

Do you have any advice for troubleshooting, or are there instructions to enable curl for a specific user?

Comments

omega8cc’s picture

I have no idea how/if this script can be fired up with php-cli, but you could use the extra Nginx config file used in Octopus to put there your custom location to allow the script to be fired up with wget from cron locally, see: http://drupalcode.org/project/octopus.git/blob/HEAD:/aegir/conf/nginx_oc...

It explains where/how to define your custom overrides to the Nginx config, but it will work only for Octopus Aegir Satellite Instances.

omega8cc’s picture

Project: Barracuda » Octopus

This belongs to the Octopus queue.

omega8cc’s picture

Status: Active » Fixed

I believe it should be fixed thanks to this commit in HEAD: http://drupalcode.org/project/octopus.git/commit/2ea4f71

Please reopen if I'm wrong.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.