I'm attempting to run all my jobs using the URL Method. The URL I'm trying (anonymized here of course) is:
https://mysite.org/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=MY_USERNAME&pass=MY_PASS&key=MY_SITE_KEY
Visiting this URL gives me a 404 error.
To test that cron runs at all on my server, I created a simple php
script,
<?php
mail ("cron@mysite.org", "Cron is Go", "Hello World from my-cron.php!");
?>
and put it in a file my-cron.php
. It sends me an email when visited. I then created a cron job to curl
its url every minute. It worked in every directory I moved it too until it got to bin
at which point the cron job did nothing and visiting the URL in browser gave me a 404 error.
Changing the permissions on bin
from 0775
to 0755
allows the script to run. I thought that the jobs URL would work, but I still get a 404 error.
Update: I changed bin
from 0775
to 0755
and cron.php
to 0755
, and it works now. Is this safe to do?