thomascube
2006-07-18 66e2bfa5507ebbbc73dc5fcabe511cd473e0c62a
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
36 * MySQL
37 -------
38 Setting up the mysql database can be done by creating an empty database,
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
T 49 For MySQL version 4.1 and up, it's recommended to create the database for
50 RoundCube with the following command:
fd3725 51 > CREATE DATABASE 'roundcubemail' DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
10a699 52
1cded8 53
10a699 54 * SQLite
T 55 --------
56 Sqlite requires specifically php5 (sqlite in php4 currently doesn't
57 work with roundcube), and you need sqlite 2 (preferably 2.8) to setup
58 the sqlite db (sqlite 3.x also doesn't work at the moment). Here is
59 an example how you can setup the sqlite.db for roundcube:
60
61 # sqlite -init SQL/sqlite.initial.sql sqlite.db
62
63 Make sure your configuration points to the sqlite.db file and that the
64 webserver can write to the file.
65
66
1cded8 67 * PostgreSQL
T 68 ------------
69 To use RoundCube with PostgreSQL support you have to follow the next
70 simple steps, which have to be done with the postgres system user (or
71 which ever is the database superuser):
72
73 $ createuser roundcubemail
74 $ createdb -O roundcubemail roundcubemail
75 $ psql roundcubemail
76
77 roundcubemail =# ALTER USER roundcube WITH PASSWORD 'the_new_password';
78 roundcubemail =# \c - roundcubemail
79 roundcubemail => \i SQL/postgres.initial.sql
80
81 All this has been tested with PostgreSQL 8.0.x and 7.4.x. Older
82 versions don't have a -O option for the createdb, so if you are
83 using that version you'll have to change ownership of the DB later.
84
85
535da2 86 CONFIGURATION
T 87 =============
88
89 Change the files in config/* according your to environment and your needs.
90 Details about the config paramaters can be found in the config files.
91
92
42b113 93 UPGRADING
T 94 =========
95 If you already have a previous version of RoundCube installed,
96 please refer to the instructions in UPGRADING guide.
4e17e6 97
T 98