Taille: 3517
Commentaire: voila, c'est fait
|
Taille: 3909
Commentaire:
|
Texte supprimé. | Texte ajouté. |
Ligne 1: | Ligne 1: |
## page was renamed from CransTechnique/RoundCube | |
Ligne 10: | Ligne 11: |
* Décompresser l'archive sur [wiki:VieCrans/ServeurRouge rouge] dans {{{/var/www/roundcube}}}. | * Décompresser l'archive sur owl dans {{{/var/www/roundcube}}}. |
Ligne 18: | Ligne 19: |
{{{$rcmail_config['db_dsnw'] = 'pgsql://roundcube@localhost/roundcube'; | {{{ $rcmail_config['db_dsnw'] = 'pgsql://roundcube@localhost/roundcube'; |
Ligne 23: | Ligne 25: |
{{{sudo su postgres -c "psql template1" | {{{ sudo su postgres -c "psql template1" |
Ligne 40: | Ligne 43: |
{{{webmail www-data roundcube | {{{ webmail www-data roundcube |
Ligne 44: | Ligne 48: |
{{{host roundcube roundcube 127.0.0.1 255.255.255.255 ident webmail | {{{ host roundcube roundcube 127.0.0.1 255.255.255.255 ident webmail |
Ligne 48: | Ligne 53: |
{{{sudo /etc/init.d/postgresql restart | {{{ sudo /etc/init.d/postgresql restart |
Ligne 52: | Ligne 58: |
{{{sudo su www-data "psql -U roundcube -h 127.0.0.1 roundcube < /var/www/roundcube/SQL/postgres.initial.sql" | {{{ sudo su www-data "psql -U roundcube -h 127.0.0.1 roundcube < /var/www/roundcube/SQL/postgres.initial.sql" |
Ligne 57: | Ligne 64: |
* on donne l'alias roundcube.crans.org à [wiki:VieCrans/ServeurRouge rouge] | * on donne l'alias roundcube.crans.org à owl |
Ligne 59: | Ligne 66: |
{{{<VirtualHost *:80> | {{{ <VirtualHost *:80> |
Ligne 75: | Ligne 83: |
{{{sudo a2ensite roundcube | {{{ sudo a2ensite roundcube |
Ligne 78: | Ligne 87: |
{{{sudo /etc/init.d/apache2 reload | {{{ sudo /etc/init.d/apache2 reload |
Ligne 84: | Ligne 94: |
{{{$rcmail_config['enable_caching'] = FALSE; | {{{ $rcmail_config['enable_caching'] = FALSE; |
Ligne 88: | Ligne 99: |
$rcmail_config['smtp_server'] = 'smtp.crans.org'; | $rcmail_config['smtp_server'] = '127.0.0.1'; |
Ligne 91: | Ligne 102: |
(on a que les lignes changées ici) | |
Ligne 96: | Ligne 108: |
== Ajout de plugins == * Copier le plugin dans {{{/usr/share/roundcube/plugins/}}} * Faire un lien symbolique de ce dossier dans {{{/var/lib/roundcube/plugins/}}} * Ajouter le nom de votre plugin dans le fichier {{{/var/lib/roundcube/config/config.inc.php}}} dans le array $config['plugins'] ---- CatégorieCrans CatégoriePagePublique |
Roundcube est un webmail en cours de développement qui utilise la technologie AJAX.
Installation au CR@NS
Le but n'est pas ici de donner un manuel d'installation de roundcube mais de dire ce qui a été fait au CRANS.
Les fichiers
Télécharger l'archive sur http://www.roundcube.net
Décompresser l'archive sur owl dans /var/www/roundcube.
Mettre tous les fichiers à www-data. Il est nécessaire que le serveur puisse écrire dans log et dans tmp.
La base de données
On fait ici le choix d'utiliser une base postgresql avec une authentification via ident (identification de l'utilisateur www-data).
Modifier le fichier /var/www/roundcube/config/db.inc.php.dist pour avoir la ligne :
$rcmail_config['db_dsnw'] = 'pgsql://roundcube@localhost/roundcube';
et déplacer ce fichier dans /var/www/roundcube/config/db.inc.php
Ajouter un utilisateur dans la base postgresql et lui donner une base de données :
sudo su postgres -c "psql template1" Bienvenue dans psql 7.4.7, l'interface interactive de PostgreSQL. Tapez: \copyright pour les termes de distribution \h pour l'aide-mémoire sur les commandes SQL \? pour l'aide-mémoire sur les commandes internes \g ou terminez avec un point-virgule pour exécuter une requête \q pour quitter template1=# CREATE user roundcube; CREATE USER template1=# CREATE database roundcube with owner roundcube; CREATE DATABASE template1=#
Ajouter dans /etc/postgresql/pg_ident.conf :
webmail www-data roundcube
Ajouter dans /etc/postgresql/pg_hba.conf (attention à l'ordre des lignes dans le fichier) :
host roundcube roundcube 127.0.0.1 255.255.255.255 ident webmail
Redémarrer posgresql :
sudo /etc/init.d/postgresql restart
Initialiser la base de données :
sudo su www-data "psql -U roundcube -h 127.0.0.1 roundcube < /var/www/roundcube/SQL/postgres.initial.sql"
Le serveur web
- on donne l'alias roundcube.crans.org à owl
on configure un virtualhost (dans /etc/apache2/sites-available/roundcube)
<VirtualHost *:80> ServerName roundcube.crans.org ServerAlias roundcube RewriteEngine On RewriteRule ^(.*)$ https://roundcube.crans.org$1 [last] </VirtualHost> <VirtualHost *:443> ServerName roundcube.crans.org ServerAlias roundcube SSLEngine on RewriteEngine On RewriteRule ^(.*)$ /var/www/roundcube$1 [last] </VirtualHost>
- on active le virtualhost :
sudo a2ensite roundcube
on recharge apache2 :
sudo /etc/init.d/apache2 reload
Le fichier de configuration
Copier /var/www/roundcube/config/main.inc.php.dist dans /var/www/roundcube/config/main.inc.php er personaliser :
$rcmail_config['enable_caching'] = FALSE; $rcmail_config['default_host'] = 'ssl://imap.crans.org:993'; $rcmail_config['default_port'] = 993; $rcmail_config['mail_domain'] = 'crans.org'; $rcmail_config['smtp_server'] = '127.0.0.1'; $rcmail_config['locale_string'] = 'fr';
(on a que les lignes changées ici)
Ajout du logo crans
Mettre une image dans /var/www/roundcube/skins/default/images
Modifier /var/www/roundcube/skins/default/templates/login.html pour ajouter la ligne qui va bien
Ajout de plugins
Copier le plugin dans /usr/share/roundcube/plugins/
Faire un lien symbolique de ce dossier dans /var/lib/roundcube/plugins/
Ajouter le nom de votre plugin dans le fichier /var/lib/roundcube/config/config.inc.php dans le array $config['plugins']