thomascube
2008-03-28 967b342039261ab294fe85d806fe49ce16391ada
commit | author | age
a89845 1 INTRODUCTION
T 2 ============
3
4 This file describes the basic steps to install RoundCube Webmail on your
5 web server. For additional information, please also consult the project's
83ce4b 6 wiki page at http://trac.roundcube.net/wiki
T 7
4e17e6 8
535da2 9 REQUIREMENTS
T 10 ============
11
1fb2c8 12 * The Apache or Lighttpd Webserver
535da2 13 * .htaccess support allowing overrides for DirectoryIndex
1fb2c8 14 * PHP Version 4.3.1 or greater including
T 15    - PCRE (perl compatible regular expression)
16    - libiconv (recommended)
17    - mbstring (optional)
535da2 18 * php.ini options:
T 19    - error_reporting E_ALL & ~E_NOTICE (or lower)
20    - file_uploads on (for attachment upload features)
25d8ba 21    - memory_limit (increase as suitable to support large attachments)
581213 22    - session.auto_start needs to be off/0
e9ac14 23 * PHP compiled with Open SSL to connect to IMAPS and to use the spell checker
535da2 24 * A MySQL or PostgreSQL database engine or the SQLite extension for PHP
1fb2c8 25 * One of the above databases with permission to create tables
T 26 * An SMTP server or PHP configured for mail delivery
535da2 27
T 28
4e17e6 29 INSTALLATION
T 30 ============
31
32 1. Decompress and put this folder somewhere inside your document root
10a699 33 2. Make sure that the following directories (and the files within)
T 34    are writable by the webserver
4e17e6 35    - /temp
T 36    - /logs
10a699 37 3. Create a new database and a database user for RoundCube (see DATABASE SETUP)
967b34 38 4. Point your browser to http://url-to-roundcube/installer/
190e97 39 5. Follow the instructions of the install script (or see MANUAL CONFINGURATION)
T 40 6. After creating and testing the configuration, remove the installer directory
42b113 41 7. Done!
T 42
43
10a699 44 DATABASE SETUP
T 45 ==============
46
aade7b 47 * MySQL 4.0.x
T 48 -------------
10a699 49 Setting up the mysql database can be done by creating an empty database,
T 50 importing the table layout and granting the proper permissions to the
51 roundcube user. Here is an example of that procedure:
52
53 # mysql
f7bfec 54 > CREATE DATABASE roundcubemail;
10a699 55 > GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
6ae6e4 56     IDENTIFIED BY 'password';
10a699 57 > quit
T 58 # mysql roundcubemail < SQL/mysql.initial.sql
535da2 59
aade7b 60
T 61 * MySQL 4.1.x/5.x
62 -----------------
535da2 63 For MySQL version 4.1 and up, it's recommended to create the database for
aade7b 64 RoundCube with utf-8 charset. Here's an example of the init procedure:
T 65
66 # mysql
f7bfec 67 > CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
aade7b 68 > GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
6ae6e4 69     IDENTIFIED BY 'password';
aade7b 70 > quit
T 71
72 # mysql roundcubemail < SQL/mysql5.initial.sql
10a699 73
3cf664 74 Note: 'password' is the master password for the roundcube user. It is strongly
T 75 recommended you replace this with a more secure password. Please keep in
76 mind: You need to specify this password later in 'config/db.inc.php'.
77
1cded8 78
10a699 79 * SQLite
T 80 --------
81 Sqlite requires specifically php5 (sqlite in php4 currently doesn't
82 work with roundcube), and you need sqlite 2 (preferably 2.8) to setup
83 the sqlite db (sqlite 3.x also doesn't work at the moment). Here is
84 an example how you can setup the sqlite.db for roundcube:
85
86 # sqlite -init SQL/sqlite.initial.sql sqlite.db
87
88 Make sure your configuration points to the sqlite.db file and that the
83ce4b 89 webserver can write to the file and the directory containing the file.
10a699 90
T 91
1cded8 92 * PostgreSQL
T 93 ------------
a89845 94 To use RoundCube with PostgreSQL support you have to follow these
T 95 simple steps, which have to be done as the postgres system user (or
1cded8 96 which ever is the database superuser):
T 97
a89845 98 $ createuser roundcube
T 99 $ createdb -O roundcube roundcubemail
1cded8 100 $ psql roundcubemail
T 101
102 roundcubemail =# ALTER USER roundcube WITH PASSWORD 'the_new_password';
a89845 103 roundcubemail =# \c - roundcube
1cded8 104 roundcubemail => \i SQL/postgres.initial.sql
T 105
a89845 106 All this has been tested with PostgreSQL 8.x and 7.4.x. Older
1cded8 107 versions don't have a -O option for the createdb, so if you are
T 108 using that version you'll have to change ownership of the DB later.
109
110
190e97 111 MANUAL CONFIGURATION
T 112 ====================
535da2 113
a89845 114 First of all, rename the files config/*.inc.php.dist to config/*.inc.php.
T 115 You can then change these files according to your environment and your needs.
116 Details about the config parameters can be found in the config files.
190e97 117 See http://trac.roundcube.net/wiki/Howto_Install for even more guidance.
535da2 118
4b9efb 119 You can also modify the default .htaccess file. This is necessary to
S 120 increase the allowed size of file attachments, for example:
121     php_value       upload_max_filesize     2M
535da2 122
83ce4b 123
42b113 124 UPGRADING
T 125 =========
6ae6e4 126
42b113 127 If you already have a previous version of RoundCube installed,
T 128 please refer to the instructions in UPGRADING guide.
4e17e6 129
T 130