This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Set up Cron for Elgg
#1
Set up Cron for Elgg
I have a elgg site running on my server and I need to setup crontab to run regualarly but unable to set up cron for elgg from sentora.

Sentora cron asks for a location of my cron script in my directories but the php script does not exist there so I get the following:
Error: Your script does not appear to exist at that location.

Below is the instructions for elgg cron setup
The crontab needs to specify a script or command that will hit the Elgg cron pages. Two commonly available programs for this are GET and wget. You will need to determine the location of one of these on your server. Your crontab also needs to specify the location of your website.

# Crontab example.
#
# This file is an example of triggering Elgg cron events. It hits a URL to
# trigger the events. For testing, you can simulate the cronjob by loading the
# URL in a browser.
#
# See http://learn.elgg.org/en/stable/admin/cron.html for more information
#

# Location of your site (don't forget the trailing slash!)
ELGG='http://www.example.com/'

# Location of lwp-request
LWPR='/usr/bin/lwp-request'

# Make GET request and discard content
GET="$LWPR -m GET -d"

# The crontab
# Don't edit below this line unless you know what you are doing
* * * * * $GET ${ELGG}cron/minute/
*/5 * * * * $GET ${ELGG}cron/fiveminute/
15,30,45,59 * * * * $GET ${ELGG}cron/fifteenmin/
30,59 * * * * $GET ${ELGG}cron/halfhour/
@hourly $GET ${ELGG}cron/hourly/
@daily $GET ${ELGG}cron/daily/
@weekly $GET ${ELGG}cron/weekly/
@monthly $GET ${ELGG}cron/monthly/
@yearly $GET ${ELGG}cron/yearly/
# reboot is deprecated and probably doesn't work
@reboot $GET ${ELGG}cron/reboot/
Reply
Thanks given by:
#2
RE: Set up Cron for Elgg
Have you checked this post out: http://forums.sentora.org/showthread.php?tid=491
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#3
RE: Set up Cron for Elgg
Elgg Cron set up documentation can be found here:https://www.easycron.com/cron-job-tutori...b-for-elgg.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Uninstalled but have cron daemon issues now HELP suprastan 1 4 ,758 10-07-2018, 03:26 AM
Last Post: TGates
Cron Job Issue: Error: System Cron file could not be created. nscloud 6 13 ,972 07-04-2018, 02:32 AM
Last Post: TGates
All time problems with Cron franmm25 6 11 ,887 07-03-2018, 07:08 AM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 1 Guest(s)