\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\part{ How to set up Kronolith reminders}
Setting up reminders is very simple. You simply have to run the \texttt{reminders.php} script in your \texttt{/horde/kronolith/scripts/} directory on the shell. To do it manually, simply try this (replace \texttt{/var/www/horde} with the path to your Horde installation):

\begin{verbatim}

php /var/www/horde/kronolith/scripts/reminders.php
\end{verbatim}

\textbf{Note}: Your \texttt{php} executable must be the CLI version, it will NOT work with the CGI version. Do \texttt{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:\newline
\begin{verbatim}

crontab -e
\end{verbatim}

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

\begin{verbatim}

# Kronolith reminders
*/5 * * * * /usr/bin/php /var/www/horde/kronolith/scripts/reminders.php
\end{verbatim}

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 \texttt{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\newline
\begin{verbatim}

# 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
\end{verbatim}

And don't forget to configure the alarm backend, but default should be OK.

NOTE: \newline
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..\newline
"you must have at least one administrator specified in the Horde configuration" or the CLI scripts won't run \newline
You don't need to run daily kronolith reminders, if you don't use daily agenda notification (eg you lock that pref daily\_agenda)

\end{document}
