RoundCube is a brilliant web-based email offering, we run it under Apache or Lighttpd.


emerge -av dev-php/PEAR-PEAR dev-php/PEAR-Net_IDNA2

Be sure to configure your PHP error reporting, date_timezone

Installing RoundCube

We'll put RoundCube into a dedicated host and path, like

git clone git:// /opt/roundcube

Configure Database

Copy the distributed db & main configuration files to local configs. Then update them as necessary.

cp ./config/ ./config/
nano ./config/
cp ./config/ ./config/
$rcmail_config['enable_installer'] = true;

Create MySql Stuff

create user 'roundcube'@'localhost' identified by 'roudncube';
create database roundcube;
grant all on roundcube.* to 'roundcube'@'localhost';

Under Apache

There is very little to do here, RoundCube is designed to operate out of the box on Apache. Simply create a virtualhost to point to this webroot.

Under Lighttpd

There are a few PHP configuration variables that need to be set for this operation. As well, some handling from the .htaccess file nees to be re-created with Lighttpd.

chown -R lighttpd:lighttpd ./logs ./temp
$HTTP["host"] != "" {
	server.document-root  = "/var/www/"
	alias.url = (
		"/rc" => "/opt/roundcube"

See Also