Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
howto:zarafa:migration [2014/01/27 15:06] h.roddewig angelegt |
— (aktuell) | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== HowTo / Migration von Zarafa 7.0.x auf Ubuntu 10.04 LTS -> Zarafa 7.1.x auf Ubuntu 12.04 LTS====== | ||
| - | Dieses HowTo erklärt in einzelnen Schritten die Migration von Zarafa 7.0.x auf einen neuen Host mit Ubuntu 12.04 LTS und Zarafa 7.1.x.\\ | ||
| - | __Ein installiertes Grundsystem mit SSH oder Konsolenzugang wird vorausgesetzt.__ | ||
| - | |||
| - | |||
| - | ==== Konfiguration von Ubuntu 12.04 LTS ==== | ||
| - | * Updates | ||
| - | * Installation zusätzliche Software | ||
| - | * MySQL | ||
| - | * Apache | ||
| - | * Weitere Software | ||
| - | ==== Installation und Konfiguration von Zarafa 7.1.x ==== | ||
| - | * Installation von Zarafa | ||
| - | * Zarafa "eindeutschen" | ||
| - | |||
| - | ==== Installation und Konfiguratin von Postfix ==== | ||
| - | * Installation | ||
| - | * Grundkonfiguration | ||
| - | * Test E-Mail versenden | ||
| - | * SASL-Authentifizierung | ||
| - | * Greylisting | ||
| - | |||
| - | |||
| - | ==== Erweiterte Konfiguration ==== | ||
| - | * Verschlüsselung - SSL | ||
| - | * POP3s | ||
| - | * Z-Push | ||
| - | |||
| - | |||
| - | ===== Konfiguration von Ubuntu 10.04 LTS ===== | ||
| - | |||
| - | ==== Updates ==== | ||
| - | Zuerst bringen wir das System auf den neusten Stand.\\ | ||
| - | Aktualisierung der Paketlisten: | ||
| - | <code>sudo aptitude updat</code> | ||
| - | Aktualisierung aller Pakete für die es ein Update gibt: | ||
| - | <code>sudo aptitude safe-upgrade</code> | ||
| - | |||
| - | ==== Installation zusätzlicher Software ==== | ||
| - | |||
| - | Bevor Zarafa installiert werden kann müssen noch ein Datenbanksystem (MySQL), ein Webserver (Apache) und PHP installiert werden. | ||
| - | |||
| - | === MySQL === | ||
| - | <code>sudo aptitude install mysql-server</code> | ||
| - | |||
| - | === Apache inkl. PHP === | ||
| - | <code>sudo aptitude install apache2-mpm-prefork libapache2-mod-php5</code> | ||
| - | |||
| - | === Weitere Software === | ||
| - | Zarafa benötigt noch weitere Bibliotheken und Tools | ||
| - | <code>sudo aptitude install catdoc gawk libboost-filesystem1.46.1 libboost-system1.46.1 libcurl3 libicu48 mktemp php-gettext poppler-utils python-mysqldb python-support ttf-dejavu-core unzip w3m wget xsltproc</code> | ||
| - | ===== Installation und Konfiguration von Zarafa 7.0.x ===== | ||
| - | |||
| - | ==== Installation ==== | ||
| - | Die aktuelle Final Version von Zarafa 7 kann hier: [[http://download.zarafa.com/community/final/7.1/]] heruntergeladen werden.\\ | ||
| - | Der richtige Download für ein 32bit Ubuntu System ist **zcp-7.1.x-xxxxx-ubuntu-10.04-i386-free.tar.gz** | ||
| - | |||
| - | Wechsel ins Temp-Verzeichnis. | ||
| - | <code>cd /tmp</code> | ||
| - | |||
| - | Installationspaket runterladen. | ||
| - | <code>wget http://download.zarafa.com/community/final/7.1/7.1.x-xxxxx/zcp-7.1.x-xxxxx-ubuntu-12.04-i386-free.tar.gz</code> | ||
| - | |||
| - | Am einfachsten ist es die Linkadresse zu kopieren...\\ | ||
| - | {{::download.jpg?nolink|}}\\ \\ | ||
| - | ...und mit einem klick auf die rechte Maustaste in Putty zu kopieren.\\ | ||
| - | {{:link.jpg?nolink|}}\\ \\ | ||
| - | |||
| - | Archiv entpacken:\\ | ||
| - | <code>tar xfz zcp-7.1.x-xxxxx-ubuntu-12.04-i386-free.tar.gz</code> | ||
| - | |||
| - | In das Verzeichnis des entpackten Archivs wechseln: | ||
| - | <code>cd zcp-7.1.x-xxxxx-ubuntu-12.04-i386</code> | ||
| - | |||
| - | Installation von Zarafa starten: | ||
| - | <code>sudo ./install.sh</code> | ||
| - | |||
| - | Nun sollte diese Meldung erscheinen:\\ | ||
| - | {{::installation.jpg?nolink|}}\\ | ||
| - | Mit ENTER bestätigen.\\ \\ | ||
| - | |||
| - | Weitere noch fehlende Pakete werden automatisch vom Zarafa-Setup erkannt und zur installation aufgefordert: \\ | ||
| - | {{::weitere_pakete.jpg?nolink|}}\\ | ||
| - | |||
| - | Eingabe der Seriennummer (wenn vorhanden):\\ | ||
| - | {{:serial.jpg?nolink|}}\\ \\ | ||
| - | |||
| - | MySQL-Server Daten eingeben:\\ | ||
| - | {{::sql_config.jpg?nolink|}}\\ | ||
| - | Bis auf das Passwort können alle Felder leer gelassen werden.\\ \\ | ||
| - | |||
| - | SMTP-Konfiguration:\\ | ||
| - | {{::smtp_config.jpg?nolink|}}\\ | ||
| - | Hier können alle Felder leer gelassen werden.\\ \\ | ||
| - | |||
| - | **Problem: Zarafa-Server startet vor MySQL**\\ | ||
| - | Unter Ubuntu 12.04 startet MySQL beim Booten ab und an //zu langsam//. Damit Zarafa-Server erst nach MySQL startet muss das Startscript angepasst werden. Durch die Anpassung wird vor dem Start von Zarafa-Server überprüft ob MySQL läuft. Ist MySQL noch nicht gestartet wird kurz pausiert und erneut geprüft. | ||
| - | |||
| - | Startscript anpassen:\\ | ||
| - | <code>sudo vim /etc/init.d/zarafa-server</code> | ||
| - | |||
| - | Folgender Code muss vor Zeile 54 eingefügt werden: | ||
| - | <code>while [ "`/sbin/initctl list | grep -c 'mysql start/running'`" != '1' ]; do | ||
| - | sleep 1 | ||
| - | done</code> | ||
| - | |||
| - | vorher: | ||
| - | <code>export LC_ALL=$ZARAFA_LOCALE | ||
| - | export LANG=$ZARAFA_LOCALE | ||
| - | start-stop-daemon --start $QUIETDAEMON --pidfile $PIDFILE --exec $SERVER -- $SERVER_OPTS | ||
| - | log_end_msg $? | ||
| - | unset LC_ALL LANG</code> | ||
| - | |||
| - | nachher: | ||
| - | <code>export LC_ALL=$ZARAFA_LOCALE | ||
| - | export LANG=$ZARAFA_LOCALE | ||
| - | while [ "`/sbin/initctl list | grep -c 'mysql start/running'`" != '1' ]; do | ||
| - | sleep 1 | ||
| - | done | ||
| - | start-stop-daemon --start $QUIETDAEMON --pidfile $PIDFILE --exec $SERVER -- $SERVER_OPTS | ||
| - | log_end_msg $? | ||
| - | unset LC_ALL LANG</code> | ||