Hello,
I'm a webmaster of a website. It currently still runs ELGG 2.x. We are moving to a new environment, where we use Direct Admin. The database and code are copied to the new environment, but I don't get the cron jobs to work. The site is located at elgg.mydomain.nl/elgg , and will stay there.
The old environment was quite confusing, but cronjobs seemed to be addressable like elgg.otherdomain.nl/minute
I tried several locations, files,... in the new environment, where it should be something like elgg.mydomain.nl/elgg ... But whatever I add or remove, the cron job does give messages like
... is a directory
... is a not a file
... is not executable
... you don't have the right permissions.
Our hosting provider can't figure out how to set these cron jobs too.
Suggestions are very welcome!
I know, I will have to bring Elgg to a much more current version too, getting the database to the relevant version. But first: get cronjobs working.
Thanks for reading and responding,
Ronald
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Ronald@Ronald_Elgg
Ronald - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- Ronald@Ronald_Elgg
Ronald - 0 likes
You must log in to post replies.Hi Ronald,
you got the url almost right, it should be elgg.mydomain.nl/elgg/cron/minute etc..
Have a look at http://learn.elgg.org/en/2.3/admin/cron.html for some more information.
I've never used the Direct Admin panel but for our apps running on Elgg 2, we use crontab with this configuration:
Maybe you just need to create cron intervals and set the above command to get cron running.
You can also use wget:
And even lynx:
Learn more about Cron.
Also, look at this plugin.
Thanks for your responses.
I still don't get it to work...
I found that I can get a PHP-file activated at
/bin/sh: /home/<USERNAME>/domains/elgg.<OURDOMAIN>.nl/public_html/elgg/<MYPHPSCRIPT>.php
I had to set permissions for that file, to refrain from getting 'Permission denied'
However, when I put
/bin/sh: /home/<USERNAME>/domains/elgg.<OURDOMAIN>.nl/public_html/elgg/cron/minute/
or
/bin/sh: /home/<USERNAME>/domains/elgg.<OURDOMAIN>.nl/public_html/elgg/cron/minute
in a cron job, I get 'No such file or directory'.
Do I have to set specific rights to a certain file? Do I have to run anything? There is no file nor directory 'cron' in my elgg-directory.
The server I currently use is not yet available on the internet without redirecting in my hosts-file, but that should not prevent it from working with its own cron jobs, should it?
Thanks for (more) help...
Ronald
You need to do a wget https://elgg.mydomain.nl/elgg/cron/minute
This is not the same as executing a .php file. Please read the documentation carefully. Or read Nikolai's comment again that does the same as the documentation.
Thanks, Jerome Bakker.
The cron job now gets activated every minute.
However, the output (send in mail, while testing) says 'Scheme missing'. It does not seem to handle the expected function(s). Do you have any clue where I should look to solve this?
Ronald