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

InstallationDebian specificInstall Apache and php and modulesInstall DatabaseInstall Horde Groupware

\part{Installation}
Horde Groupware requires some prerequisite software before you can use it. In addition, there are other software packages which, while\newline
not required, are recommended as without them you will experience very limited functionality. The following helps you to\newline
install the required and recommended software packages on a Debian Etch (4.0) System.

*There is also a Horde 'Groupware Webmail Edition' this will not be the part of this how to*\newline
*This how to will not cover your mailserver setup.*

*Note: this how to is just a draft and not really perfect - feel free to edit it and make it better*

\part{Debian specific}
I started with a new and fresh Debian(openvz-image)\newline
You should update your system.\newline
\begin{verbatim}

apt-get update && apt-get dist-upgrade
\end{verbatim}

\part{Install Apache and php and modules}
\begin{verbatim}

apt-get install libapache2-mod-php5 apache2 apache2-mpm-prefork
\end{verbatim}

\newline
You need the cli for the horde setup script!\newline
\begin{verbatim}

apt-get install php5-cli
\end{verbatim}

\newline
These php modules are needed for horde Groupware\newline
\begin{verbatim}

apt-get install php-pear php5-gd php5-ldap php5-mcrypt php5-memcache 
\end{verbatim}

\newline
For webmail you need the imap extension\newline
\begin{verbatim}

apt-get install php5-imap
\end{verbatim}

\newline
If you want to use mysql as Database backend, you should install the php5-mysql extension\newline
\begin{verbatim}

apt-get install php5-mysql
\end{verbatim}

\newline
If you want to you postgresql as Database backend install php5-pgsql\begin{verbatim}

apt-get install php5-pgsql
\end{verbatim}

\part{Install Database}
For Mysql\newline
\begin{verbatim}

apt-get install mysql-server
\end{verbatim}

\newline
You will be asked for a mysqlroot password - don't forget it ;)\newline
After that you need to create a user and create grants.\newline
\begin{verbatim}

mysql -p -e 'CREATE USER HORDE ...'
\end{verbatim}

\newline
\begin{verbatim}

mysql -p -e 'grant all on horde.* to horde@localhost identified by "horde";'
\end{verbatim}

\part{Install Horde Groupware}
Download and unpack it\newline
\begin{verbatim}

wget [tarball]
cd /root
tar -xvf horde-webmail-1.0.1.tar.gz
\end{verbatim}

copy to /var/www and change owner\newline
\begin{verbatim}

cp -r /root/horde-webmail-1.0.1 /var/www/horde
chown -r www-data:www-data horde
\end{verbatim}

\newline
with php5-cli start the setup script\newline
\begin{verbatim}

php5 -q /var/www/horde/scripts/setup.php
\end{verbatim}

\end{document}
