6.0.0-git
2019-11-13

Diff for KronolithReminders between 19 and 20

+ How to set up Kronolith reminders

Setting up reminders is very simple. You simply have to run the {{reminders.php}} script in your {{/horde/kronolith/scripts/}} directory on the shell. To do it manually, simply try this (replace {{/var/www/horde}} with the path to your Horde installation):

<code>
php /var/www/horde/kronolith/scripts/reminders.php
</code>

**Note**: Your {{php}} executable must be the CLI version, it will NOT work with the CGI version. Do {{php -v}} to verify that you have the CLI version.

If this works (you will get an email), you have to create a cronjob to call the reminders script regularly. In this example, it is called every five minutes. So edit your crontab:
<code>
crontab -e
</code>

and enter the following (replace {{/var/www/horde}} with the path to your Horde installation and {{/usr/bin/php}} with the path to your PHP CLI binary):

<code>
# Kronolith reminders
*/5 * * * * /usr/bin/php /var/www/horde/kronolith/scripts/reminders.php
</code>

Note that the user that runs the cron job needs to have write access to the Horde VFS as reminder state information is stored there. If you are using a filesystem based VFS driver, running as the web server user is a good alternative to running as root.

If you are editing a global system crontab instead of using the {{crontab -e}} command to edit a specific user's crontab, you may need to specify the user the job will run as or other information specific to your system and that global file.

NOTE: All users should have the Options | Global Options | Default Identity | from_addr field filled with his own mail in order to receive a reminder.

Things have changed since Horde 3.2. In /etc/crontab, insert the following lines
<code>
# Horde Alarms
*/5 * * * * www-data /usr/bin/php /var/www/perso/horde/scripts/alarms.php
# Kronolith reminders
0 2 * * * www-data /usr/bin/php /var/www/perso/horde/kronolith/scripts/reminders.php
</code>

And don't forget to configure the alarm backend, but default should be OK. In some web server, they don't allow to use cron jobs, you can use third party sites like [http://www.easycron.com/ Easycron.com] to run the cron.

NOTE: 
Notifications are now prefs driven, and default just to browser notification, so don't wait for an email if you don't touch prefs.php. Take care of memory limit in php.ini for cli, that can be huge..
"you must have at least one administrator specified in the Horde configuration" or the CLI scripts won't run 
You don't need to run daily kronolith reminders, if you don't use daily agenda notification (eg you lock that pref daily_agenda)