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