root/branches/devel-vnext/INSTALL

Revision 957, 4.1 kB (checked in by tomekp, 7 months ago)

first part of devel-vnext to trunk merging process
this broke the devel-vnext branch, we switched to error_reporting(E_ALL|E_STRICT)
more to come shortly

Line 
1INTRODUCTION
2============
3
4This file describes the basic steps to install RoundCube Webmail on your
5web server. For additional information, please also consult the project's
6wiki page at
7
8     http://trac.roundcube.net/wiki
9
10
11REQUIREMENTS
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
30INSTALLATION
31============
32
331. Decompress and put this folder somewhere inside your document root
342. Make sure that the following directories (and the files within)
35   are writable by the webserver
36   - /temp
37   - /logs
383. Create a new database and a database user for RoundCube (see DATABASE SETUP)
394. Create database tables using the queries in file 'SQL/*.initial.sql'
40   (* stands for your database type)
415. Rename the files config/*.inc.php.dist to config/*.inc.php
426. Modify the files in config/* to suit your local environment
437. Done!
44
45
46DATABASE SETUP
47==============
48
49* MySQL 4.0.x
50-------------
51Setting up the mysql database can be done by creating an empty database,
52importing the table layout and granting the proper permissions to the
53roundcube 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-----------------
65For MySQL version 4.1 and up, it's recommended to create the database for
66RoundCube 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
76Note: 'password' is the master password for the roundcube user. It is strongly
77recommended you replace this with a more secure password. Please keep in
78mind: You need to specify this password later in 'config/db.inc.php'.
79
80
81* SQLite
82--------
83Sqlite requires specifically php5 (sqlite in php4 currently doesn't
84work with roundcube), and you need sqlite 2 (preferably 2.8) to setup
85the sqlite db (sqlite 3.x also doesn't work at the moment). Here is
86an example how you can setup the sqlite.db for roundcube:
87
88# sqlite -init SQL/sqlite.initial.sql sqlite.db
89
90Make sure your configuration points to the sqlite.db file and that the
91webserver can write to the file.
92
93
94* PostgreSQL
95------------
96
97To use RoundCube with PostgreSQL support you have to follow these
98simple steps, which have to be done as the postgres system user (or
99which ever is the database superuser):
100
101$ createuser roundcube
102$ createdb -O roundcube roundcubemail
103$ psql roundcubemail
104
105roundcubemail =# ALTER USER roundcube WITH PASSWORD 'the_new_password';
106roundcubemail =# \c - roundcube
107roundcubemail => \i SQL/postgres.initial.sql
108
109All this has been tested with PostgreSQL 8.x and 7.4.x. Older
110versions don't have a -O option for the createdb, so if you are
111using that version you'll have to change ownership of the DB later.
112
113
114CONFIGURATION
115=============
116
117First of all, rename the files config/*.inc.php.dist to config/*.inc.php.
118You can then change these files according to your environment and your needs.
119Details about the config parameters can be found in the config files.
120
121You can also modify the default .htaccess file. This is necessary to
122increase the allowed size of file attachments, for example:
123       php_value       upload_max_filesize     2M
124
125
126UPGRADING
127=========
128
129If you already have a previous version of RoundCube installed,
130please refer to the instructions in UPGRADING guide.
131
Note: See TracBrowser for help on using the browser.