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