Installation of RoundCubeMail



Step (1)

Download the latest tar file from
http://roundcube.net/

roundcubemail-0.1.1.tar.gz

[root@alanstudio]# cd /var/www/html/
[root@alanstudio]# wget http://jaist.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1.1.tar.gz
[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";
quit

[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 db.inc.php.dist db.inc.php
[root@alanstudio]# mv main.inc.php.dist main.inc.php

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

[root@alanstudio]# chown -R root.root db.inc.php

Modify the config file 'db.inc.php'

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

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

Modify the config file 'main.inc.php'

$rcmail_config['default_host'] = '127.0.0.1';
$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 :

http://localhost/roundcubemail

P.S.:

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

(2) You can check your php/extension requirement in web installer, but first enable it in main.inc.php, 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.