{"data":{"attributes":{"categories":[],"content":"\nMode opératoire pour installer la version svn de\n[RoundCube](http://roundcube.net/) sur une debian (etch, lenny ou sid).\nCelà doit aussi fonctionner avec d'autres distributions.\n\nDepuis le 04/05/2007 un [paquet\nroundcube](http://packages.debian.org/roundcube) officiel à fait sont\nentrée dans debian sid, 1 mois plus tard il est entré dans testing. Il\nest fortement conseillé d'utiliser la version empaqueté présente dans\nles dépos debian officiel. Le seule intérêt de suivre la procédure\nci-dessous, c'est d'utiliser la version subversion.\n\nRécupération des sources de roundcube directement dans le svn\n\n    cd /usr/local/share\n`svn checkout `[`https://svn.roundcube.net/trunk/roundcubemail`](https://svn.roundcube.net/trunk/roundcubemail)` roundcube`\n\nCréation et préparation du répertoire de travaille, dans la \"debian\npolicy\" les applications web doivent travailler dans\n/var/lib/mon\\_applie\n\n    mkdir -p /var/lib/roundcube/temp\n    chown www-data:www-data /var/lib/roundcube/temp\n    cd /var/lib/roundcube\n    ln -s /usr/local/share/roundcube/bin /usr/local/share/roundcube/index.php \\\n          /usr/local/share/roundcube/program /usr/local/share/roundcube/skins \\\n          /usr/local/share/roundcube/.htaccess .\n\nCréation de la base de données\n\n    mysql -u root -p\n    > create database roundcubemail;\n    > GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'password';\n    > quit\n\nChargement de la base\n\n    mysql -u root -p roundcubemail < /usr/local/share/roundcube/SQL/mysql5.initial.sql\n\nPréparer le répertoire de configuration, dans debian, la totalité des\nfichiers de configuration doivent se trouver dans /etc/\n\n    mkdir /etc/roundcube\n    ln -s /etc/roundcube /var/lib/roundcube/config\n    cp /usr/local/share/roundcube/config/db.inc.php.dist /etc/roundcube/db.inc.php\n    cp /usr/local/share/roundcube/config/main.inc.php.dist /etc/roundcube/main.inc.php\n    chown www-data:www-data /etc/roundcube/db.inc.php /etc/roundcube/main.inc.php\n    chmod 640 /etc/roundcube/db.inc.php /etc/roundcube/main.inc.php\n\nConfigurer RoundCube, voir [le site de\nroundcube](http://trac.roundcube.net/trac.cgi/wiki/Howto_Install) pour\nplus d'informations\n\n    vi /etc/roundcube/db.inc.php\n    vi /etc/roundcube/main.inc.php\n\nConfigurer les logs\n\n    mkdir /var/log/roundcube\n    chown www-data:www-data /var/log/roundcube\n    ln -s /var/log/roundcube /var/lib/roundcube/logs\n\nConfigurer Apache2, voir l'exemple de fichier de configuration en fin\nd'article\n\n    vi /etc/apache2/sites-available/roundcube\n    a2ensite roundcube\n    invoke-rc.d apache2 reload\n\nConfigurer logrotate pour une rotation intelligente des logs :\n\n    vi /etc/logrotate.d/roundcube\n\nExemple de fichier /etc/logrotate.d/roundcube\n\n    /var/log/roundcube/errors  /var/log/roundcube/sendmail {\n            daily\n            missingok\n            rotate 10\n            compress\n            delaycompress\n            notifempty\n            create 640 www-data www-data\n    }\n\nExemple de fichier /etc/apache2/sites-available/roundcube\n\n    <VirtualHost *:80>\n      DocumentRoot /var/lib/roundcube\n      ServerName webmail.tcweb.org\n      ServerAlias webmail.tcweb.fr\n      ServerAlias webmail.tcweb.eu\n\n    # redirect to https when available (thanks omen@descolada.dartmouth.edu)\n    #\n    #  Note: There are multiple ways to do this, and which one is suitable for\n    #  your site's configuration depends. Consult the apache documentation if\n    #  you're unsure, as this example might not work everywhere.\n    #\n    <IfModule mod_rewrite.c>\n      <IfModule mod_ssl.c>\n        <Location />\n          RewriteEngine on\n          RewriteCond %{HTTPS} !^on$ [NC]\n          RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]\n        </Location>\n      </IfModule>\n    </IfModule>\n\n    </VirtualHost>\n\n    # Le vhost en https\n    <VirtualHost *:443>\n      DocumentRoot /var/lib/roundcube\n      ServerName webmail.tcweb.org\n      ServerAlias webmail.tcweb.fr\n      ServerAlias webmail.tcweb.eu\n\n      SSLEngine on\n      SSLCertificateFile /etc/apache2/ssl/tcweb.org.pem\n    </VirtualHost>\n","date":"2007-09-20T00:00:00Z","description":"HowTo RoundCube et debian","lang":"fr","tags":["TrucsEtAstuces","Linux","Mediawiki"],"title":"HowTo RoundCube et debian"},"id":"https://blog.tcweb.org/wiki/howto-roundcube-et-debian/","links":{"html":"https://blog.tcweb.org/wiki/howto-roundcube-et-debian/","markdown":"https://blog.tcweb.org/wiki/howto-roundcube-et-debian/index.md","self":"https://blog.tcweb.org/wiki/howto-roundcube-et-debian/index.json"},"type":"page"}}