source: subversion/trunk/roundcubemail/INSTALL @ 2449

Last change on this file since 2449 was 2449, checked in by alec, 4 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
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 http://trac.roundcube.net/wiki
7
8
9REQUIREMENTS
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
31INSTALLATION
32============
33
341. Decompress and put this folder somewhere inside your document root
352. Make sure that the following directories (and the files within)
36   are writable by the webserver
37   - /temp
38   - /logs
393. Create a new database and a database user for RoundCube (see DATABASE SETUP)
404. Point your browser to http://url-to-roundcube/installer/
415. Follow the instructions of the install script (or see MANUAL CONFINGURATION)
426. After creating and testing the configuration, remove the installer directory
437. Done!
44
45
46DATABASE SETUP
47==============
48
49* MySQL
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 /*!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
63Note 1: 'password' is the master password for the roundcube user. It is strongly
64recommended you replace this with a more secure password. Please keep in
65mind: You need to specify this password later in 'config/db.inc.php'.
66
67Note 2: For MySQL version 4.1 and up, it's recommended to create the database for
68RoundCube with utf-8 charset.
69
70
71* SQLite
72--------
73You need sqlite 2 (preferably 2.8) to setup the sqlite db
74(sqlite 3.x also doesn't work at the moment). Here is
75an example how you can setup the sqlite.db for roundcube:
76
77# sqlite -init SQL/sqlite.initial.sql sqlite.db
78
79Make sure your configuration points to the sqlite.db file and that the
80webserver can write to the file and the directory containing the file.
81
82
83* PostgreSQL
84------------
85To use RoundCube with PostgreSQL support you have to follow these
86simple steps, which have to be done as the postgres system user (or
87which ever is the database superuser):
88
89$ createuser roundcube
90$ createdb -O roundcube -E UNICODE roundcubemail
91$ psql roundcubemail
92
93roundcubemail =# ALTER USER roundcube WITH PASSWORD 'the_new_password';
94roundcubemail =# \c - roundcube
95roundcubemail => \i SQL/postgres.initial.sql
96
97All this has been tested with PostgreSQL 8.x and 7.4.x. Older
98versions don't have a -O option for the createdb, so if you are
99using that version you'll have to change ownership of the DB later.
100
101
102MANUAL CONFIGURATION
103====================
104
105First of all, rename the files config/*.inc.php.dist to config/*.inc.php.
106You can then change these files according to your environment and your needs.
107Details about the config parameters can be found in the config files.
108See http://trac.roundcube.net/wiki/Howto_Install for even more guidance.
109
110You can also modify the default .htaccess file. This is necessary to
111increase the allowed size of file attachments, for example:
112        php_value       upload_max_filesize     2M
113
114
115UPGRADING
116=========
117
118If you already have a previous version of RoundCube installed,
119please refer to the instructions in UPGRADING guide.
120
121
Note: See TracBrowser for help on using the repository browser.