Install RoundCube in Ubuntu 9.04

By admin

Install Roundcube via source:

# wget http://nchc.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.2.1.tar.gz

# tar -xvzf roundcubemail-0.2.1.tar.gz –directory=/var/www/nginx-default/

# cd /var/www/nginx-default/roundcubemail-0.2.1/

# chown -R www-data:www-data temp logs

Create MySQL database and user for Roundcube:

# mysql -u root -p mysql

Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 45
Server version: 5.1.31-1ubuntu2 (Ubuntu)

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database roundcube;
Query OK, 1 row affected (0.09 sec)

mysql> grant all privileges on roundcube.* to roundcube@localhost identified by ‘123456′ with grant option;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

Filling roundcube database :

# cd /var/www/nginx-default/roundcubemail-0.2.1/SQL/

# mysql -uroundcube -p123456 roundcube < mysql.initial.sql

# cd /var/www/nginx-default/roundcubemail-0.2.1/config/

# mv db.inc.php.dist  db.inc.php

# mv main.inc.php.dist main.inc.php

Edit db.inc.php and adjust :

$rcmail_config['db_dsnw'] = ‘mysql://roundcube:123456@unix(/tmp/mysql.sock)/roundcube’;

Edit main.inc.php and adjust :

$rcmail_config['default_host'] = ‘ssl://localhost:993‘;
$rcmail_config['default_port'] = 993;
$rcmail_config['useragent'] = ‘RoundCube Webmail‘;

Secure config files :

# chmod 600 /var/www/nginx-default/roundcubemail-0.2.1/config/*

Add new entry in bind zone files for mail2.digitalfusi.com and add these entry :

server {
listen          80;
server_name     mail2.digitalfusi.com;

location / {
index index.php index.html;
root  /var/www/nginx-default/roundcubemail-0.2.1;
}
location ~ \.php$ {
fastcgi_pass    127.0.0.1:9000;
fastcgi_index   index.php;
fastcgi_param     SCRIPT_FILENAME     /var/www/nginx-default/roundcubemail-0.2.1$fastcgi_script_name;
include      fastcgi_params;
}

}

in /etc/nginx/sites-enabled/default .

Open mail2.digitalfusi.com to see it work.

roundcube

Incoming search terms for the article:

Information

Quick and Easy Way to Install FreeBSD Email Server from Scratch , covered virtual hosting and multiple domain, spam protection etc plus tips to get system up to date

  • Pages

  • Download Ubuntu

  • Download Fedora

  • Tags

    atmail open on ubuntu server change ip address check connection clamav continue install dns dovecot fuzzyocr install jaunty maia mailguard mysql New Virtual Disk Wizard nginx pear php postfix postfixadmin preparation roundcube mail Setting Virtual Machine spamassassin squirrelmail
  • Categories

    • Translate to: