Installing Roundcube on Linux

From ISPWiki

Jump to: navigation, search

Installing RoundCube on server running Linux

Debian 6.0 (Apache ITK)

Download the latest version of RoundCube

wget http://kaz.dl.sourceforge.net/project/roundcubemail/roundcubemail/0.8.6/roundcubemail-0.8.6.tar.gz

Untar

tar -zxf roundcubemail-0.8.6.tar.gz -C /etc/
mv /etc/roundcubemail-0.8.6 /etc/roundcubemail

Change the owner

chown -R www-data /etc/roundcubemail


Customizing Apache

Create the file /etc/apache2/conf.d/roundcube.conf:

Alias /webmail /etc/roundcubemail
<Directory /etc/roundcube>
       AssignUserID www-data www-data
       RemoveHandler .php  .php3 .php4 .phtml
       AddType application/x-httpd-php .php  .php3 .php4 .phtml
       php_admin_value open_basedir /etc/roundcubemail
       php_admin_value upload_tmp_dir /tmp
       php_admin_value session.save_path "/tmp"
       DirectoryIndex index.php
       Order allow,deny
       Allow from all
</Directory>

Follow the link https://ip/webmail/installer/ to install RoundCube Delete the installer directory


Changing RoundCube address

For example we want RoundCube to be accessible at http://domain.com, rather than at http://ip/webmail

In the ISPmanager configuration file (/usr/local/ispmgr/etc/ispmgr.conf) change

extaction webmail /webmail/ 

into

extaction webmail http://domain.com

Add alias for virtualhost

Alias /  /etc/roundcubemail/

Restart Apache.

/etc/init.d/apache2 restart
Was this helpful? Yes | No
Views
Personal tools