thomascube
2006-08-06 aade7b98044ad4abb9021452688ec3af57f36acb
commit | author | age
4e17e6 1
535da2 2 REQUIREMENTS
T 3 ============
4
5 * The Apache Webserver
6 * .htaccess support allowing overrides for DirectoryIndex
7 * PHP Version 4.3.1 or greater
8 * PCRE (perl compatible regular expression) installed with PHP
9 * php.ini options:
10    - error_reporting E_ALL & ~E_NOTICE (or lower)
11    - file_uploads on (for attachment upload features)
25d8ba 12    - memory_limit (increase as suitable to support large attachments)
535da2 13 * A MySQL or PostgreSQL database engine or the SQLite extension for PHP
T 14 * A database with permission to create tables
15
16
4e17e6 17 INSTALLATION
T 18 ============
19
20 1. Decompress and put this folder somewhere inside your document root
10a699 21 2. Make sure that the following directories (and the files within)
T 22    are writable by the webserver
4e17e6 23    - /temp
T 24    - /logs
10a699 25 3. Create a new database and a database user for RoundCube (see DATABASE SETUP)
42b113 26 4. Create database tables using the queries in file 'SQL/*.initial.sql'
10a699 27    (* stands for your database type)
42b113 28 5. Rename the files config/*.inc.php.dist to config/*.inc.php
T 29 6. Modify the files in config/* to suit your local environment
30 7. Done!
31
32
10a699 33 DATABASE SETUP
T 34 ==============
35
aade7b 36 * MySQL 4.0.x
T 37 -------------
10a699 38 Setting up the mysql database can be done by creating an empty database,
T 39 importing the table layout and granting the proper permissions to the
40 roundcube user. Here is an example of that procedure:
41
42 # mysql
fd3725 43 > CREATE DATABASE 'roundcubemail';
10a699 44 > GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
T 45         IDENTIFIED BY 'password';
46 > quit
47 # mysql roundcubemail < SQL/mysql.initial.sql
535da2 48
aade7b 49
T 50 * MySQL 4.1.x/5.x
51 -----------------
535da2 52 For MySQL version 4.1 and up, it's recommended to create the database for
aade7b 53 RoundCube with utf-8 charset. Here's an example of the init procedure:
T 54
55 # mysql
fd3725 56 > CREATE DATABASE 'roundcubemail' DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
aade7b 57 > GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
T 58         IDENTIFIED BY 'password';
59 > quit
60
61 # mysql roundcubemail < SQL/mysql5.initial.sql
10a699 62
1cded8 63
10a699 64 * SQLite
T 65 --------
66 Sqlite requires specifically php5 (sqlite in php4 currently doesn't
67 work with roundcube), and you need sqlite 2 (preferably 2.8) to setup
68 the sqlite db (sqlite 3.x also doesn't work at the moment). Here is
69 an example how you can setup the sqlite.db for roundcube:
70
71 # sqlite -init SQL/sqlite.initial.sql sqlite.db
72
73 Make sure your configuration points to the sqlite.db file and that the
74 webserver can write to the file.
75
76
1cded8 77 * PostgreSQL
T 78 ------------
79 To use RoundCube with PostgreSQL support you have to follow the next
80 simple steps, which have to be done with the postgres system user (or
81 which ever is the database superuser):
82
83 $ createuser roundcubemail
84 $ createdb -O roundcubemail roundcubemail
85 $ psql roundcubemail
86
87 roundcubemail =# ALTER USER roundcube WITH PASSWORD 'the_new_password';
88 roundcubemail =# \c - roundcubemail
89 roundcubemail => \i SQL/postgres.initial.sql
90
91 All this has been tested with PostgreSQL 8.0.x and 7.4.x. Older
92 versions don't have a -O option for the createdb, so if you are
93 using that version you'll have to change ownership of the DB later.
94
95
535da2 96 CONFIGURATION
T 97 =============
98
99 Change the files in config/* according your to environment and your needs.
100 Details about the config paramaters can be found in the config files.
101
102
42b113 103 UPGRADING
T 104 =========
105 If you already have a previous version of RoundCube installed,
106 please refer to the instructions in UPGRADING guide.
4e17e6 107
T 108