jeudi 26 avril 2012

OpenSuse 12.1: Installer eGroupWare

J'utilise eGroupWare depuis pas mal de temps, pour le module "Base de connaissance". Bon, je sais, installer un outil aussi complet pour n'utiliser qu'un seul module, c'est un peu du luxe. Mais (pour l'instant, car je continu de chercher) je n'ai pas trouvé d'outils OpenSource me permettant de gérer convenablement les informations techniques que j'amasse quotidiennement. Donc comme j'ai les serveurs, comme j'ai les ressources et comme j'ai les compétences, pourquoi ne pas s'offrir le luxe d'installer eGroupWare sur un de nos serveurs ?

Ma dernière installation d'eGroupWare (en version 1.4), remontait à plus de 3ans... mon premier réflexe a donc été d'essayer de mettre à jours, la version existante. Bien mal m'en a pris... Heureusement que dans ma grande sagesse (et surtout avec déjà beaucoup d'upgrade manqués aux compteurs), j'avais sauvegardé à la fois la base et le répertoire d'eGroupWare. Ce qui m'a permis de revenir en arrière sans avoir perdu la moindre information.... Ouf ...
Donc après cette petite mésaventure, je me décide à installer une nouvelle instance d'eGroupWare sur un serveur à part, histoire d'être tranquille.
Le souvenir que j'en avais, c'était qu'eGroupWare avait beaucoup de dépendances au niveau des modules php et que lors de mes premières installations, j'avais pas mal galéré pour toutes les ajouter à la main.
Utilisant depuis quelques temps maintenant le super outil de gestion des packages d'OpenSuse 'zypper', je me dis pourquoi ne pas en profiter pour l'installation d'eGroupWare ? Effectivement, sur le site d'eGroupWare, on trouve justement un repository pour pouvoir utiliser zypper.

Et voilà que l'installation commence.

Etape 1 : ajouter les référence du repository
piaf:~ # zypper addrepo http://download.opensuse.org/repositories/server:/eGroupWare/openSUSE_12.1/ 'openSUSE-12.1 eGroupWare'
Adding repository 'openSUSE-12.1 eGroupWare' [done]
Repository 'openSUSE-12.1 eGroupWare' successfully added
Enabled: Yes
Autorefresh: No
GPG check: Yes
URI: http://download.opensuse.org/repositories/server:/eGroupWare/openSUSE_12.1/


Etape 2 : mettre à jours les informations du nouveau repository
piaf:~ # zypper lr -u
# | Alias                    | Name                     | Enabled | Refresh | URI                                                                       
--+--------------------------+--------------------------+---------+---------+----------------------------------------------------------------------------
1 | openSUSE-12.1 eGroupWare | openSUSE-12.1 eGroupWare | Yes     | No      | http://download.opensuse.org/repositories/server:/eGroupWare/openSUSE_12.1/
2 | repo-12.1-non-oss        | openSUSE-12.1 Non-OSS    | Yes     | No      | http://download.opensuse.org/distribution/12.1/repo/non-oss/              
3 | repo-12.1-oss            | openSUSE-12.1 OSS        | Yes     | No      | http://download.opensuse.org/distribution/12.1/repo/oss/                  
4 | repo-12.1-update         | openSUSE-12.1 Updates    | Yes     | No      | http://download.opensuse.org/update/12.1/       
                          

piaf:~ # zypper refresh
Retrieving repository 'openSUSE-12.1 eGroupWare' metadata [\]

New repository or package signing key received:
Key ID: DC0A179E47E7FC8D
Key Name: server:eGroupWare OBS Project <server:eGroupWare@build.opensuse.org>
Key Fingerprint: A8533F680C15B1B9DC69036BDC0A179E47E7FC8D
Key Created: Sat Apr  3 09:02:42 2010
Key Expires: Mon Jun 11 09:02:42 2012 (expires in 45 days)
Repository: openSUSE-12.1 eGroupWare

Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a
Retrieving repository 'openSUSE-12.1 eGroupWare' metadata [done]
Building repository 'openSUSE-12.1 eGroupWare' cache [done]
Repository 'openSUSE-12.1 Non-OSS' is up to date.
Repository 'openSUSE-12.1 OSS' is up to date.
Retrieving repository 'openSUSE-12.1 Updates' metadata [done]
Building repository 'openSUSE-12.1 Updates' cache [done]
All repositories have been refreshed.
 


Etape 3 : installation d'eGroupWare
piaf:~ # zypper search egroupware
Loading repository data...
Reading installed packages...

S | Name                       | Summary                                                   | Type     
--+----------------------------+-----------------------------------------------------------+-----------
  | eGroupware                 | EGroupware is a web-based groupware suite written in php. | package  
  | eGroupware                 | EGroupware is a web-based groupware suite written in php. | srcpackage
  | eGroupware-bookmarks       | The EGroupware bookmarks application                      | package  
  | eGroupware-calendar        | The EGroupware calendar application                       | package  
  | eGroupware-core            | The EGroupware core                                       | package  
  | eGroupware-developer_tools | The EGroupware developer_tools application                | package  
  | eGroupware-egw-pear        | The EGroupware egw-pear application                       | package  
  | eGroupware-emailadmin      | The EGroupware emailadmin application                     | package  
  | eGroupware-felamimail      | The EGroupware Webmail application                        | package  
  | eGroupware-filemanager     | The EGroupware filemanager application                    | package  
  | eGroupware-gallery         | The EGroupware gallery application                        | package  
  | eGroupware-importexport    | The EGroupware importexport application                   | package  
  | eGroupware-infolog         | The EGroupware infolog application                        | package  
  | eGroupware-manual          | The EGroupware manual application                         | package  
  | eGroupware-news_admin      | The EGroupware news_admin application                     | package  
  | eGroupware-notifications   | The EGroupware notifications application                  | package  
  | eGroupware-phpbrain        | The EGroupware phpbrain application                       | package  
  | eGroupware-phpfreechat     | The EGroupware chat application                           | package  
  | eGroupware-phpsysinfo      | The EGroupware phpsysinfo application                     | package  
  | eGroupware-polls           | The EGroupware polls application                          | package  
  | eGroupware-projectmanager  | The EGroupware projectmanager application                 | package  
  | eGroupware-registration    | The EGroupware registration application                   | package  
  | eGroupware-resources       | The EGroupware resources application                      | package  
  | eGroupware-sambaadmin      | The EGroupware sambaadmin application                     | package  
  | eGroupware-sitemgr         | The EGroupware Sitemanager CMS application                | package  
  | eGroupware-syncml          | The EGroupware syncml application                         | package  
  | eGroupware-timesheet       | The EGroupware timesheet application                      | package  
  | eGroupware-tracker         | The EGroupware trouble ticket system application          | package  
  | eGroupware-wiki            | The EGroupware wiki application                           | package  

piaf:~ # zypper install eGroupware
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  eGroupware eGroupware-bookmarks eGroupware-calendar eGroupware-core eGroupware-developer_tools eGroupware-egw-pear eGroupware-emailadmin
  eGroupware-felamimail eGroupware-filemanager eGroupware-importexport eGroupware-infolog eGroupware-manual eGroupware-news_admin eGroupware-notifications
  eGroupware-phpbrain eGroupware-phpfreechat eGroupware-phpsysinfo eGroupware-polls eGroupware-projectmanager eGroupware-registration eGroupware-resources
  eGroupware-sambaadmin eGroupware-sitemgr eGroupware-syncml eGroupware-timesheet eGroupware-tracker eGroupware-wiki jpgraph libc-client2007e_suse php5-bz2
  php5-gd php5-imap php5-posix php5-zip t1lib tnef

36 new packages to install.
Overall download size: 21.7 MiB. After the operation, additional 69.0 MiB will be used.
Continue? [y/n/?] (y):
Retrieving package tnef-1.4.9-1.1.x86_64 (1/36), 45.0 KiB (131.0 KiB unpacked)
Retrieving: tnef-1.4.9-1.1.x86_64.rpm [done]
Retrieving package libc-client2007e_suse-2007e_suse-9.1.2.x86_64 (2/36), 405.0 KiB (1.1 MiB unpacked)
Retrieving: libc-client2007e_suse-2007e_suse-9.1.2.x86_64.rpm [done]
Retrieving package php5-bz2-5.3.8-4.12.2.x86_64 (3/36), 27.0 KiB (28.0 KiB unpacked)
Retrieving: php5-bz2-5.3.8-4.12.2.x86_64.rpm [done (0 B/s)]
Retrieving package php5-posix-5.3.8-4.12.2.x86_64 (4/36), 27.0 KiB (32.0 KiB unpacked)
Retrieving: php5-posix-5.3.8-4.12.2.x86_64.rpm [done]
Retrieving package php5-zip-5.3.8-4.12.2.x86_64 (5/36), 49.0 KiB (88.0 KiB unpacked)
Retrieving: php5-zip-5.3.8-4.12.2.x86_64.rpm [done]
Retrieving package t1lib-5.1.2-15.7.1.x86_64 (6/36), 152.0 KiB (405.0 KiB unpacked)
Retrieving: t1lib-5.1.2-15.7.1.x86_64.rpm [done]
Retrieving package php5-imap-5.3.8-4.12.2.x86_64 (7/36), 46.0 KiB (100.0 KiB unpacked)
Retrieving: php5-imap-5.3.8-4.12.2.x86_64.rpm [done]
Retrieving package php5-gd-5.3.8-4.12.2.x86_64 (8/36), 99.0 KiB (333.0 KiB unpacked)
Retrieving: php5-gd-5.3.8-4.12.2.x86_64.rpm [done]
Retrieving package jpgraph-3.0.7-2.1.noarch (9/36), 9.8 MiB (21.8 MiB unpacked)
Retrieving: jpgraph-3.0.7-2.1.noarch.rpm [done (4.4 MiB/s)]
Retrieving package eGroupware-core-1.8.004.20120423-1.1.noarch (10/36), 5.6 MiB (23.8 MiB unpacked)
Retrieving: eGroupware-core-1.8.004.20120423-1.1.noarch.rpm [done (4.2 MiB/s)]
Retrieving package eGroupware-wiki-1.8.004.20120423-1.1.noarch (11/36), 152.0 KiB (487.0 KiB unpacked)
Retrieving: eGroupware-wiki-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-tracker-1.8.004.20120423-1.1.noarch (12/36), 136.0 KiB (555.0 KiB unpacked)
Retrieving: eGroupware-tracker-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-timesheet-1.8.004.20120423-1.1.noarch (13/36), 91.0 KiB (265.0 KiB unpacked)
Retrieving: eGroupware-timesheet-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-sitemgr-1.8.004.20120423-1.1.noarch (14/36), 825.0 KiB (2.8 MiB unpacked)
Retrieving: eGroupware-sitemgr-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-sambaadmin-1.8.004.20120423-1.1.noarch (15/36), 49.0 KiB (79.0 KiB unpacked)
Retrieving: eGroupware-sambaadmin-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-resources-1.8.004.20120423-1.1.noarch (16/36), 106.0 KiB (338.0 KiB unpacked)
Retrieving: eGroupware-resources-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-registration-1.8.004.20120423-1.1.noarch (17/36), 161.0 KiB (434.0 KiB unpacked)
Retrieving: eGroupware-registration-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-projectmanager-1.8.004.20120423-1.1.noarch (18/36), 397.0 KiB (1.6 MiB unpacked)
Retrieving: eGroupware-projectmanager-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-polls-1.8.004.20120423-1.1.noarch (19/36), 68.0 KiB (142.0 KiB unpacked)
Retrieving: eGroupware-polls-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-phpsysinfo-1.8.004.20120423-1.1.noarch (20/36), 267.0 KiB (1.0 MiB unpacked)
Retrieving: eGroupware-phpsysinfo-1.8.004.20120423-1.1.noarch.rpm [done (843.8 KiB/s)]
Retrieving package eGroupware-phpfreechat-1.8.004.20120423-1.1.noarch (21/36), 971.0 KiB (4.7 MiB unpacked)
Retrieving: eGroupware-phpfreechat-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-phpbrain-1.8.004.20120423-1.1.noarch (22/36), 155.0 KiB (639.0 KiB unpacked)
Retrieving: eGroupware-phpbrain-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-notifications-1.8.004.20120423-1.1.noarch (23/36), 58.0 KiB (115.0 KiB unpacked)
Retrieving: eGroupware-notifications-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-news_admin-1.8.004.20120423-1.1.noarch (24/36), 105.0 KiB (361.0 KiB unpacked)
Retrieving: eGroupware-news_admin-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-infolog-1.8.004.20120423-1.1.noarch (25/36), 294.0 KiB (1.3 MiB unpacked)
Retrieving: eGroupware-infolog-1.8.004.20120423-1.1.noarch.rpm [done (0 B/s)]
Retrieving package eGroupware-importexport-1.8.004.20120423-1.1.noarch (26/36), 206.0 KiB (432.0 KiB unpacked)
Retrieving: eGroupware-importexport-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-egw-pear-1.8.004.20120423-1.1.noarch (27/36), 105.0 KiB (503.0 KiB unpacked)
Retrieving: eGroupware-egw-pear-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-developer_tools-1.8.004.20120423-1.1.noarch (28/36), 82.0 KiB (220.0 KiB unpacked)
Retrieving: eGroupware-developer_tools-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-calendar-1.8.004.20120423-1.1.noarch (29/36), 467.0 KiB (2.4 MiB unpacked)
Retrieving: eGroupware-calendar-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-bookmarks-1.8.004.20120423-1.1.noarch (30/36), 121.0 KiB (280.0 KiB unpacked)
Retrieving: eGroupware-bookmarks-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-manual-1.8.004.20120423-1.1.noarch (31/36), 56.0 KiB (61.0 KiB unpacked)
Retrieving: eGroupware-manual-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-syncml-1.8.004.20120423-1.1.noarch (32/36), 65.0 KiB (235.0 KiB unpacked)
Retrieving: eGroupware-syncml-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-filemanager-1.8.004.20120423-1.1.noarch (33/36), 171.0 KiB (476.0 KiB unpacked)
Retrieving: eGroupware-filemanager-1.8.004.20120423-1.1.noarch.rpm [done (0 B/s)]
Retrieving package eGroupware-emailadmin-1.8.004.20120423-1.1.noarch (34/36), 121.0 KiB (497.0 KiB unpacked)
Retrieving: eGroupware-emailadmin-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-felamimail-1.8.004.20120423-1.1.noarch (35/36), 361.0 KiB (1.6 MiB unpacked)
Retrieving: eGroupware-felamimail-1.8.004.20120423-1.1.noarch.rpm [done]
Retrieving package eGroupware-1.8.004.20120423-1.1.noarch (36/36), 30.0 KiB (0 B unpacked)
Retrieving: eGroupware-1.8.004.20120423-1.1.noarch.rpm [done]
Installing: tnef-1.4.9-1.1 [done]
Installing: libc-client2007e_suse-2007e_suse-9.1.2 [done]
Installing: php5-bz2-5.3.8-4.12.2 [done]
Installing: php5-posix-5.3.8-4.12.2 [done]
Installing: php5-zip-5.3.8-4.12.2 [done]
Installing: t1lib-5.1.2-15.7.1 [done]
Installing: php5-imap-5.3.8-4.12.2 [done]
Installing: php5-gd-5.3.8-4.12.2 [done]
Installing: jpgraph-3.0.7-2.1 [done]
Installing: eGroupware-core-1.8.004.20120423-1.1 [done]
Installing: eGroupware-wiki-1.8.004.20120423-1.1 [done]
Installing: eGroupware-tracker-1.8.004.20120423-1.1 [done]
Installing: eGroupware-timesheet-1.8.004.20120423-1.1 [done]
Installing: eGroupware-sitemgr-1.8.004.20120423-1.1 [done]
Installing: eGroupware-sambaadmin-1.8.004.20120423-1.1 [done]
Installing: eGroupware-resources-1.8.004.20120423-1.1 [done]
Installing: eGroupware-registration-1.8.004.20120423-1.1 [done]
Installing: eGroupware-projectmanager-1.8.004.20120423-1.1 [done]
Installing: eGroupware-polls-1.8.004.20120423-1.1 [done]
Installing: eGroupware-phpsysinfo-1.8.004.20120423-1.1 [done]
Installing: eGroupware-phpfreechat-1.8.004.20120423-1.1 [done]
Installing: eGroupware-phpbrain-1.8.004.20120423-1.1 [done]
Installing: eGroupware-notifications-1.8.004.20120423-1.1 [done]
Installing: eGroupware-news_admin-1.8.004.20120423-1.1 [done]
Installing: eGroupware-infolog-1.8.004.20120423-1.1 [done]
Installing: eGroupware-importexport-1.8.004.20120423-1.1 [done]
Installing: eGroupware-egw-pear-1.8.004.20120423-1.1 [done]
Installing: eGroupware-developer_tools-1.8.004.20120423-1.1 [done]
Installing: eGroupware-calendar-1.8.004.20120423-1.1 [done]
Installing: eGroupware-bookmarks-1.8.004.20120423-1.1 [done]
Installing: eGroupware-manual-1.8.004.20120423-1.1 [done]
Installing: eGroupware-syncml-1.8.004.20120423-1.1 [done]
Installing: eGroupware-filemanager-1.8.004.20120423-1.1 [done]
Installing: eGroupware-emailadmin-1.8.004.20120423-1.1 [done]
Installing: eGroupware-felamimail-1.8.004.20120423-1.1 [done]
Installing: eGroupware-1.8.004.20120423-1.1 [done]
Additional rpm output:
/var/tmp/rpm-tmp.tlGGWE: line 2: /usr/bin/php5: No such file or directory
EGroupware install log saved to /root/eGroupware-install.log


Et voilà, le tour est joué... facile non?
Juste un petit souci, car il manque l'exécutable /usr/bin/php5. Pour cela il suffit d'installer le package php5 (j'ai quand même mis un bout de temp à trouver le bon package, car un package php5 était déjà installé, mais ce n'était pas le bon) :

piaf:~ # zypper install php5
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be upgraded:
  php5

1 package to upgrade.
Overall download size: 1.1 MiB. No additional space will be used or freed after the operation.
Continue? [y/n/?] (y):
Retrieving package php5-5.3.8-4.12.2.x86_64 (1/1), 1.1 MiB (4.6 MiB unpacked)
Retrieving: php5-5.3.8-4.12.2.x86_64.rpm [done (0 B/s)]
Installing: php5-5.3.8-4.12.2 [done]


Beaucoup plus simple à installer car je n'ai plus à m'occuper des dépendances. Par défaut, les fichiers d'eGroupWare sont situé dans /usr/share/egroupware. Il suffit donc maintenant de configurer apaache et de suivre les instructions d'installation d'eGroupWare. Je n'ai rencontré aucun problème pour la suite, mais si vous avez un souci, n'hésitez pas à me laisser une question.

Aucun commentaire:

Publier un commentaire