====== Umgebung ====== Debian (Etch/Lenny), ispCP, MySQL, Apache 2.x ====== Webseite ====== [[http://roundcube.net/]] ====== Installation ====== ===== Vorbereitung ===== #cd /usr/local/src #mkdir roundcube #cd roundcube ===== Download ===== #wget http://mesh.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.2-stable.tar.gz ===== Entpacken ===== #tar xvfz roundcubemail-0.2-stable.tar.gz ===== ispCP Verzeichnis vorbereiten ===== #mkdir /var/www/ispcp/gui/tools/roundcube ===== Quellcode kopieren ===== #cp roundcubemail-0.2-stable/* /var/www/ispcp/gui/tools/roundcube -R ===== Berechtigungen setzen ===== #chown -R vu2000 /var/www/ispcp/gui/tools/roundcube #cd /var/www/ispcp/gui/tools/roundcube #chmod 755 temp logs ===== Datenbank anlegen ===== #mysql -u root -p Dein MySQL Root Passwort ersetze DeinPasswort mit deinem CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'DeinPasswort'; quit ===== SQL File importieren ===== #mysql -u roundcube -p roundcubemail < SQL/mysql.initial.sql Dein Roundcube Datebank Passwort entsprechen anpassen ===== Roundcube konfigurieren ===== #cd /var/www/ispcp/gui/tools/roundcube/config #cp db.inc.php.dist db.inc.php #cp main.inc.php.dist main.inc.php #pico db.inc.php und folgende Zeile anpassen $rcmail_config['db_dsnw'] = 'mysql://roundcube:DeinPasswort@localhost/roundcubemail'; ===== Grundeinstellungen/Konfigurationen anpassen ===== #pico main.inc.php line 27: $rcmail_config['message_cache_lifetime'] = '30m'; line 38: $rcmail_config['default_host'] = 'localhost'; line 97: $rcmail_config['session_lifetime'] = 30; line 180: $rcmail_config['create_default_folders'] = TRUE; ====== Apache anpassen ====== #pico /etc/apache2/sites-available/00_master.conf und folgenden Eintrag hinzufügen: Alias /cube /var/www/ispcp/gui/tools/roundcube/ (Wer mag kann auch einfach Webmail ersetzen, ich präferiere die zusätzliche Variante) ===== Subdomain für Roundcube ===== #pico /etc/apache2/sites-available/06-roundcube Folgendes eintragen: ServerAdmin knut@meine-domain.de DocumentRoot /var/www/ispcp/gui/tools/roundcube ServerName cube.meine-domain.de ServerAlias cube.* ErrorLog /var/log/apache2/users/cube-error.log TransferLog /var/log/apache2/users/cube-access.log CustomLog /var/log/apache2/cube-traf.log traff CustomLog /var/log/apache2/cube-combined.log combined SuexecUserGroup vu2000 vu2000 Options -Indexes Includes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php Options +ExecCGI AllowOverride None Options +ExecCGI MultiViews -Indexes Order allow,deny Allow from all ScriptAlias /php5/ /var/www/fcgi/master/ AllowOverride None Options +ExecCGI MultiViews -Indexes Order allow,deny Allow from all php_admin_value open_basedir "/var/www/ispcp/gui/tools/roundcube/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/" php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/" php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/" Die Daten für #a2ensite 06-roundcube ===== Apache neu starten ===== /etc/init.d/apache2 restart