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