\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\tableofcontents

\part{ Ical HowTo using Sunbird or Thunderbird/Lightning with working free/busy}
\textsl{Colortext: NINote: This is not an official Horde document. There is no write support in Horde 3.1/Kronolith 2.1Colortext: NI}


\noindent\rule{\textwidth}{1pt}
This document is intended to help administrators configure various parts of horde to link a calendar application with Kronolith. Please feel free to fill in any gaps or to clarify any existing information presented here.


\noindent\rule{\textwidth}{1pt}
\section{ Document Standards}
In this document, we assume the following:

\begin{itemize}
\item{The latest stable version of Horde and Kronolith.}
\item{A working version of Horde and Kronolith.}
\item{A working version of Sunbird or Thunderbird/Lightning extension.}
\end{itemize}

\noindent\rule{\textwidth}{1pt}
\section{ On debian}
\begin{itemize}
\item{Install php pear package as follow:}
\end{itemize}
\begin{verbatim}

apt-get install php4-pear
\end{verbatim}

\newline
You can also use php5 package.\section{ HTTP\_WebDAV\_Server}
Then to make sure pear is working:\newline
\begin{verbatim}

pear config-show
\end{verbatim}

You now need to install the pear HTTP\_WebDAV\_Server package\newline
\begin{verbatim}

pear install HTTP_WebDAV_Server-beta
\end{verbatim}

\begin{itemize}
\item{Adjust your apache config if necessary.}
\end{itemize}
We found that Sunbird was taking roughly 20 seconds to download the ics file over webdav and that even downloading the file in a browser had the same lag.  On investigation it turned out Kronolith was taking about 3 seconds to generate the file and Sunbird was waiting 15 seconds for the connection to close after downloading the file.  Turning off KeepAlive\footnote{http://example.com/index.php?page=KeepAlive} in apache.conf (or setting it to a very small value) solved this issue.  The default is 15 seconds.

\section{ Test it}
Launch your Sunbird or Lightning application.

\begin{itemize}
\item{Go to calendar}
\item{New ->}
\item{On the Network -> iCalendar}
\end{itemize}
\texttt{https://yourhost/yourhordepath/rpc.php/kronolith/YOUR-HORDE-USERNAME.ics\footnote{https://yourhost/yourhordepath/rpc.php/kronolith/YOUR-HORDE-USERNAME.ics}}

15/05/08: Starting with Horde Webmail 1.1 RC4, and as pointed out in that thread\footnote{http://thread.gmane.org/gmane.comp.horde.kronolith/4555}, this URL has to be changed like below:\newline
\texttt{https://yourhost/yourhordepath/rpc.php/kronolith/YOUR-HORDE-USERNAME/YOUR-HORDE-USERNAME.ics\footnote{https://yourhost/yourhordepath/rpc.php/kronolith/YOUR-HORDE-USERNAME/YOUR-HORDE-USERNAME.ics}}

It should ask you for user and password.

Then you should see you calendar and be able to edit events in both Sunbird/Lightning and Kronolith.

I can read my calendar perfectly but not publish. My apache returns a 404 or 403.

Then it should work according to this:\newline
http://lists.horde.org/archives/kronolith/Week-of-Mon-20060130/005859.html\footnote{http://lists.horde.org/archives/kronolith/Week-of-Mon-20060130/005859.html}

Check also, whether the Apache config allows the PUT method. You should have something similar to\newline
\begin{verbatim}

        <Directory /home/www/cal>
          <LimitExcept GET POST OPTIONS PROPFIND PUT>
            Order deny,allow
            deny from all
          </LimitExcept>
        </Directory> 
\end{verbatim}

where /home/www/cal would be the directory under which horde is installed, in your Apache config.

\section{ Free/busy}
Free/busy Lightning extension is able to correctly read Horde freebusy file.

\section{ Notes}
* 26/03/08: With Lightning v0.7 and Horde Webmail 1.1RC3, reading and publishing works correctly with a remote calendar as described on this page.\newline
 * This does work very nicely with sunbird 0.7 and kronolith 2.2, you must select ical (not webdav) but you do get two way editing.\newline
 * 2011-11-23: Using SME Server 8b6, with smeserver-kronolith and kronolith-h3 installed (kronolith v2.3), and the pear additions from above, works fine with Thunderbird 8.0 and Lightning 1.0 -- paul dot warren at wollemisystems dot com

2012-06-07

I have found the Solution!

this link has helped me http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2011-July/214620.html\footnote{http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2011-July/214620.html}

you have to install the pear-HTTP\_WebDAV\_Server

but it installed in the /usr/share/php dir

you must copy following files to your /usr/share/psa-pear folder, then you can write in your calendar form thunderbird or outlook

/HTTP/WebDAV\footnote{http://example.com/index.php?page=WebDAV}/  to your psa-pear dir  (i think you must copy more than this dir) but it works

yourserer.com/rpc.php/kronolith/<yourid>/<yourid>.ics

Thunderbird ask you for a webdav authentification

Have fun


\noindent\rule{\textwidth}{1pt}
\newline
To get better Performance with more Than 20 Calendars, dturn KeepAlive\footnote{http://example.com/index.php?page=KeepAlive} Off on your Apache serverso the loading on Mailclient should be much faster

\end{document}
