Mainos / Advertisement:

Ero sivun ”Roundcube/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: Install Apache2, Php5, Mysql)
(Ak: Uusi sivu: List of additional components (plugins/ directory))
 
(27 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 10: Rivi 10:
 
   apt-get install apache2 php5 php-pear php5-mysql php5-mcrypt php5-intl
 
   apt-get install apache2 php5 php-pear php5-mysql php5-mcrypt php5-intl
  
Lataa asennuspaketti http://roundcube.net/. :
+
Download installation package http://roundcube.net/
  
 
   wget http://softlayer-ams.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.5/roundcubemail-1.0.5.tar.gz
 
   wget http://softlayer-ams.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.5/roundcubemail-1.0.5.tar.gz
  
Pura tar paketti
+
Extract tar package
  
 
   tar -xjf roundcubemail-1.0.5.tar.gz
 
   tar -xjf roundcubemail-1.0.5.tar.gz
  
Siirrä Rouncube haluamallesi sijaintiin palvelimellasi
+
Move Roundcube to your preferred location on your server
  
 
   mv ~/roundcube /var/www
 
   mv ~/roundcube /var/www
  
Voit asentaa myös aptituden avulla (ei suositella).
+
You can also install Roundcube using aptitude (we don't recommend doing it like this).
  
 
   aptitude install roundcube
 
   aptitude install roundcube
  
Konfigurointihakemisto on tällöin
+
If you do this, the configuration folder will be located in
  
 
   /etc/roundcube
 
   /etc/roundcube
  
== Konfigurointi ==
+
== Configuration ==
  
Määritä kirjoitus oikeus www-data käyttäjälle (webbipalvelimen käyttäjälle) /temp ja /logs hakemistoihin
+
Define write privileges for www-data user (web server user) into the /temp and /logs directories.
  
=== Apachen konfigurointi ===
+
=== Configuring Apache ===
  
Avaa Apachen konfigurointi tiedosto
+
Open the Apache configuration file
  
 
   nano /etc/apache2/sites-available/default
 
   nano /etc/apache2/sites-available/default
  
Lisää seuraavat rivit default tiedostoon. Muuta tarvittaessa tiedostopolkua
+
Add the following lines into the default file. You may need to change the folder path depending on where you installed roundcube.
  
 
  <Directory /var/www/roundcube>
 
  <Directory /var/www/roundcube>
Rivi 67: Rivi 67:
  
  
Estetään pääsy config hakemistoon
+
We block access to the config directory
 
  <Directory /var/www/roundcube/config>
 
  <Directory /var/www/roundcube/config>
 
  Options -FollowSymLinks
 
  Options -FollowSymLinks
Rivi 75: Rivi 75:
 
  </Directory>
 
  </Directory>
  
Estetään pääsy temp hakemistoon
+
We block access to the temp directory
 
  <Directory /var/www/roundcube/temp>
 
  <Directory /var/www/roundcube/temp>
 
  Options -FollowSymLinks
 
  Options -FollowSymLinks
Rivi 83: Rivi 83:
 
  </Directory>
 
  </Directory>
  
Estetään pääsy logs hakemistoon
+
We block access to the logs directory
 
  <Directory /var/www/roundcube/logs>
 
  <Directory /var/www/roundcube/logs>
 
  Options -FollowSymLinks
 
  Options -FollowSymLinks
Rivi 91: Rivi 91:
 
  </Directory>
 
  </Directory>
  
Tallenna ja käynnistä Apache2 uudelleen
+
Save the changes and restart the Apache2 service.
  
=== Roundcuben konfigurointi ===
+
=== Configuring Roundcube ===
  
Konfigurointi on ladattavissa https://github.com/Taistowiki/roundcube
+
Our example configuration is available for download from https://github.com/Taistowiki/roundcube
  
Luo tiedosto ~/roundcube/config/config.inc.php ja kopioi alla oleva sisältö tiedostoon. Voit myös käyttää asennusohjelmaa johon pääsee http://server_ip/rouncube/installer
+
Create file ~/roundcube/config/config.inc.php and copy the content below into that file. You can also use the installation program which is accessible from http://server_ip/roundcube/installer
  
 
   <?php
 
   <?php
 
  /* Local configuration for Roundcube Webmail */
 
  /* Local configuration for Roundcube Webmail */
  
Tietokantaan yhdistäminen DSN luku ja kirjoittavalla operaattorilla. Kirjoitetaan muodossa (Tuetaan PEAR MDB2): db_provider://user:password@host/database. Lisää esimerkkejä: http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php. Tuetaan [[Mysql]], Pgsql, sqlite, mssql ja sqlsrv. Huomaathan että Sqlite käyttää absoluuttista polkua: sqlite:////full/path/to/sqlite.db?mode=0646
+
Connecting DSN reading to your database using a writing operator. Written in the form (supports PEAR MDB2): db_provider://user:password@host/database
 +
 
 +
More examples: http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
 +
 
 +
Supports [[Mysql]], Pgsql, sqlite, mssql and sqlsrv. Be sure to note that Sqlite uses an absolute path: sqlite:////full/path/to/sqlite.db?mode=0646
  
 
   $config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';
 
   $config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';
  
Määritä IMAP palvelimen verkko-osoite. Jos jätät tyhjäksi niin kirjautumisen yhteydessä kysytään kirjautumisen palvelinta. Array funktiolla saat siihen listan eri sähköpostipalvelimista jonne voi kirjautua. SSL/TLS yhteyksiin käytä etuliitettä ssl:// tai tls://.
+
Define the IMAP server's network address. If you leave this empty, then then you will be prompted for a login server as you try to log in. Using an array function you can get a list of different e-mail servers which you can log on to. For SSL or TLS connections use the prefix ssl:// or tls://
  
Voit käyttää seuraavia muuttujia:
+
You can use the following variables:
  
* %n - isäntänimi ($_SERVER['SERVER_NAME'])
+
* %n - hostname ($_SERVER['SERVER_NAME'])
* %t - isäntämimi ilman ensimmäistä osaa
+
* %t - hostname without the first part
* %d - domain (http domain$_SERVER['HTTP_HOST'] ilman esimmäistä osaa)
+
* %d - domain (http domain$_SERVER['HTTP_HOST'] without the first part)
* %s - domainin nimi jälkeen '@' sähköposti osoitteen palveluntarjoajan kirjautumisen näytössä
+
* %s - domain name after '@' in the login screen
  
Esimerkiksi: %n = mail.domain.tld, %t = domain.tld
+
For example: %n = mail.domain.tld, %t = domain.tld
 
   
 
   
 
  $config['default_host'] = 'localhost';
 
  $config['default_host'] = 'localhost';
  
Määritä SMTP palvelimen verkko-osoite. Käyttäessä SSL/TLS yhteyttä, määritä isäntämimeen etuliite ssl:// tai TLS://. Jos jätät tyhjäksi, käytetään PHP mail() funktiota.  
+
Define the SMPT server's network address. When using SSL or TLS connections, use the prefix ssl:// or tls:// . If you leave this empty, PHP mail() function will be used.  
  
Voit käyttää seuraavia muuttujia:
+
You can use the following variables:
  
* %h - Käyttäjän IMAP isäntänimi
+
* %h - Users IMAP host name
* %n - isäntänimi ($_SERVER['SERVER_NAME'])
+
* %n - host name ($_SERVER['SERVER_NAME'])
* %t - isäntämimi ilman ensimmäistä osaa
+
* %t - host name without the first part
* %d - domain (http domain$_SERVER['HTTP_HOST'] ilman esimmäistä osaa)
+
* %d - domain (http domain$_SERVER['HTTP_HOST'] without the first part)
* %z - IMAP domain (IMAP isäntänimi ilman ensimmäistä osaa)
+
* %z - IMAP domain (IMAP host name without the first part)
  
 
  $config['smtp_server'] = 'localhost';
 
  $config['smtp_server'] = 'localhost';
  
Palveluntarjoajan verkko-osoite josta tämän palvelunkäyttäjät saavat apua Roundcuben käyttöön. Älä linkkaa roundcube.net verkkosivulle!
+
The service provider's network address where users can get help for Roundcube. Do not link to the roundcube.net website!
  
 
  $config['support_url'] = '';
 
  $config['support_url'] = '';
  
Tämä avain kryptaa käyttäjän IMAP salasanan kun tallennetaan tietokantaan. Käytä vähintään 24 merkkiä.
+
This key crypts the user's IMAP password when it is saved in the database. Use a minimum of 24 characters.
 
  $config['des_key'] = 'H=Mgd81+3Hn+VeKnU?h*bNX!';
 
  $config['des_key'] = 'H=Mgd81+3Hn+VeKnU?h*bNX!';
  
Lista lisäosista (plugins/ hakemistosta)
+
List of additional components (plugins/ directory)
  
 
  $config['plugins'] = array();
 
  $config['plugins'] = array();

Nykyinen versio 20. elokuuta 2015 kello 08.31

Muut kielet:
English • ‎suomi

Roundcube is a free and open source webmail which provides a desktop like user interface. Roundcube is easy to install and configure for instance on a LAMP server. Roundcube requires a web server (for instance Apache2), an SMTP server (for instance Postfix), IMAP (for instance Dovecot) and a database (for instance Mysql).

This manual will work for Roundcube 1.0 and newer versions.

Installation

Install Apache2, Php5, Mysql

 apt-get install apache2 php5 php-pear php5-mysql php5-mcrypt php5-intl

Download installation package http://roundcube.net/

 wget http://softlayer-ams.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.5/roundcubemail-1.0.5.tar.gz

Extract tar package

 tar -xjf roundcubemail-1.0.5.tar.gz

Move Roundcube to your preferred location on your server

 mv ~/roundcube /var/www

You can also install Roundcube using aptitude (we don't recommend doing it like this).

 aptitude install roundcube

If you do this, the configuration folder will be located in

 /etc/roundcube

Configuration

Define write privileges for www-data user (web server user) into the /temp and /logs directories.

Configuring Apache

Open the Apache configuration file

 nano /etc/apache2/sites-available/default

Add the following lines into the default file. You may need to change the folder path depending on where you installed roundcube.

<Directory /var/www/roundcube>
Options +FollowSymLinks
# AddDefaultCharset     UTF-8
AddType text/x-component .htc

<IfModule mod_php5.c>
php_flag        display_errors  Off
php_flag        log_errors      On
# php_value     error_log       logs/errors
php_value       upload_max_filesize     10M
php_value       post_max_size           12M
php_value       memory_limit            64M
php_flag        zlib.output_compression         Off
php_flag        magic_quotes_gpc                Off
php_flag        magic_quotes_runtime            Off
php_flag        zend.ze1_compatibility_mode     Off
php_flag        suhosin.session.encrypt         Off
#php_value      session.cookie_path             /
php_flag        session.auto_start      Off
php_value       session.gc_maxlifetime  21600
php_value       session.gc_divisor      500
php_value       session.gc_probability  1
</IfModule>


We block access to the config directory

<Directory /var/www/roundcube/config>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>

We block access to the temp directory

<Directory /var/www/roundcube/temp>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>

We block access to the logs directory

<Directory /var/www/roundcube/logs>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>

Save the changes and restart the Apache2 service.

Configuring Roundcube

Our example configuration is available for download from https://github.com/Taistowiki/roundcube

Create file ~/roundcube/config/config.inc.php and copy the content below into that file. You can also use the installation program which is accessible from http://server_ip/roundcube/installer

 <?php
/* Local configuration for Roundcube Webmail */

Connecting DSN reading to your database using a writing operator. Written in the form (supports PEAR MDB2): db_provider://user:password@host/database

More examples: http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php

Supports Mysql, Pgsql, sqlite, mssql and sqlsrv. Be sure to note that Sqlite uses an absolute path: sqlite:////full/path/to/sqlite.db?mode=0646

 $config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';

Define the IMAP server's network address. If you leave this empty, then then you will be prompted for a login server as you try to log in. Using an array function you can get a list of different e-mail servers which you can log on to. For SSL or TLS connections use the prefix ssl:// or tls://

You can use the following variables:

  • %n - hostname ($_SERVER['SERVER_NAME'])
  • %t - hostname without the first part
  • %d - domain (http domain$_SERVER['HTTP_HOST'] without the first part)
  • %s - domain name after '@' in the login screen

For example: %n = mail.domain.tld, %t = domain.tld

$config['default_host'] = 'localhost';

Define the SMPT server's network address. When using SSL or TLS connections, use the prefix ssl:// or tls:// . If you leave this empty, PHP mail() function will be used.

You can use the following variables:

  • %h - Users IMAP host name
  • %n - host name ($_SERVER['SERVER_NAME'])
  • %t - host name without the first part
  • %d - domain (http domain$_SERVER['HTTP_HOST'] without the first part)
  • %z - IMAP domain (IMAP host name without the first part)
$config['smtp_server'] = 'localhost';

The service provider's network address where users can get help for Roundcube. Do not link to the roundcube.net website!

$config['support_url'] = ;

This key crypts the user's IMAP password when it is saved in the database. Use a minimum of 24 characters.

$config['des_key'] = 'H=Mgd81+3Hn+VeKnU?h*bNX!';

List of additional components (plugins/ directory)

$config['plugins'] = array();
Mainos / Advertisement: