Installation of RoundCubeMail

Step (1)

Download the latest tar file from


[root@alanstudio]# cd /var/www/html/
[root@alanstudio]# wget
[root@alanstudio]# tar -zxvf roundcubemail-0.1.1.tar.gz
[root@alanstudio]# mv roundcubemail-0.1.1 roundcubemail

Step (2)

[root@alanstudio]# chown -R apache.apache /var/www/html/roundcubemail

Change owner to apache access

Step (3)

Create the database "roundcubemail" in mysql and import the tables from "SQL/mysql.initial.sql"

[root@alanstudio]# mysql -uroot -p

CREATE DATABASE roundcubemail;
GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY "password";

[root@alanstudio]# mysql -uroot -p roundcubemail < /var/www/html/roundcubemail/SQL/mysql.initial.sql

Step (4)

Rename config file to :

[root@alanstudio]# cd roundcubemail/config/
[root@alanstudio]# mv
[root@alanstudio]# mv

Set the permisson to root only access the config file with the password :

[root@alanstudio]# chown -R root.root

Modify the config file ''

[root@alanstudio]# vi db,inc.php

$rcmail_config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcubemail';

Modify the config file ''

$rcmail_config['default_host'] = '';
$rcmail_config['useragent'] = 'Yourdomain Webmail';
$rcmail_config['product_name'] = 'Yourdomain Webmail';
$rcmail_config['create_default_folders'] = TRUE;
$rcmail_config['default_charset'] = 'UTF-8';

remove .htaccess in roundcubemail/:

[root@alanstudio]# rm .htaccess

Step (5)

Test your roundcubemail :



(1) If it is prompt with database connect error, try check you mysql database or change the value in :
$rcmail_config['db_backend'] = 'db';

(2) You can check your php/extension requirement in web installer, but first enable it in, then view it in http://localhost/roundcubemail/installer

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.