Intégration de Z-Push dans la plate-forme LiberAccés v2.0 Titre Version Date Dernière Page Identité du Document Intégration de Z-Push dans la plate-forme LiberAccés v2.0 1.0 Community 19 Juin 2013 5 Evolution du Document date version rédacteur 19/06/2013 1.0 Jérémy POSE commentaires Version initiale
Contenu Installation de la partie z-push pour synchronisation de la messagerie... 3 Installation des prérequis... 3 Installation Z-Push... 3 Configuration Z-Push... 4 Fichier /var/www/z-push/config.php... 4 Fichier /etc/apache2/sites-available/zpush... 4 Redémarrage apache... 5
Installation de la partie z-push pour synchronisation de la messagerie Installation des prérequis Se connecter au serveur apache1 du pool sur lequel on va installer z-push. Ajout des packages suivants sur le serveur : apt-get install php5-curl curl apache2 php5 libapache2-mod-php5 php5-xcache php5imap php-mail Installation Z-Push Télécharger le Z-Push Active-Sync 12.1 branche svn checkout svn://svn.berlios.de/z-push/branches/as12.1 /var/www/z-push Télécharger le Zimbra Active-Sync branche backend 12.1 svn checkout https://zimbrabackend.svn.sourceforge.net/svnroot/zimbrabackend/zimbra backend/branches/as12.1 /var/www/z-push/zimbra Déplacer les fichiers inutilisés du backend, ne laissant que backend.php et diffbackend.php mkdir /var/www/z-push/backend-old mv /var/www/z-push/backend/* /var/www/z-push/backend-old mv /var/www/z-push/backend-old/backend.php /var/www/z-push/backend/ mv /var/www/z-push/backend-old/diffbackend.php /var/www/z-push/backend/ Déplacez le zimbra.php en backend mv /var/www/z-push/zimbra/zimbra.php /var/www/z-push/backend/ Permettre l'accès en écriture au dossier state chown wwwdata:wwwdata /var/www/z-push/state Créer un fichier de débug touch /var/log/apache2/debug-zpush.log chown wwwdata:wwwdata /var/log/apache2/debug-zpush.log ln s /var/log/apache2/debug-zpush.log /var/www/z-push/debug.txt
Configuration Z-Push Fichier /var/www/z-push/config.php Mettre à jour les lignes suivantes date_default_timezone_set("europe/paris"); define ('PROVISIONING', false); $BACKEND_PROVIDER = "BackendZimbra"; Ajoutez les lignes suivantes define('zimbra_debug',true); define('zimbra_url', 'http://zimbra1'); define('zimbra_user_dir', 'zimbra'); define('zimbra_sync_contact_pictures', true); define('zimbra_virtual_contacts',true); define('zimbra_virtual_appointments',true); define('zimbra_virtual_tasks',true); define('zimbra_ignore_emailed_contacts',true); define('zimbra_html',true) ; Fichier /etc/apache2/sites-available/zpush Dans les deux cas il faut créer le fichier /etc/apache2/sites-available/zpush Sans certificat SSL <VirtualHost *:80> ServerName domaine_public_zpush DocumentRoot /var/www/z-push/ Alias /MicrosoftServerActiveSync /var/www/z-push/index.php php_flag short_open_tag on php_flag magic_quotes_runtime off php_flag register_globals off php_flag magic_quotes_gpc off </VirtualHost> Avec certificat SSL <VirtualHost *:443> ServerName domaine_public_zpush Alias /MicrosoftServerActiveSync /var/www/z-push/index.php DocumentRoot /var/www/z-push/
php_flag short_open_tag on php_flag magic_quotes_runtime off php_flag register_globals off php_flag magic_quotes_gpc off SSLEngine on SSLProxyEngine on SSLCertificateFile chemin_certificat.crt SSLCertificateKeyFile chemin_certificat.key </VirtualHost> Redémarrage apache # activation de la configuration a2ensite zpush # test de la configuration apache2ctl configtest # doit retourner Syntax OK # relance du service service apache2 reload Accès au serveur : http://domaine_public_zpush/microsoft-server-activesync (si configuration sans SSL) https://domaine_public_zpush/microsoft-server-activesync (si configuration avec SSL) On doit être invité à entrer un nom d'utilisateur et mot de passe (pour un compte sur le serveur Zimbra). Sinon, Apache a omis de remettre l'invite. Vérifiez les logs du serveur apache. Le site n est peut-être pas configuré correctement ou Z-Push a rencontré une erreur PHP.