Have been using roundcube for ages, its great, installed like this:
Code:
cd /var/www; ls -lah
download roundcubemail-0.5.1.tar.gz and unpack (get latest v/URL from here: http://roundcube.net/download)
mv roundcubemail-0.5.1 roundcube
chown root:root roundcube/*
cd /var/www/roundcube; ls -lah
chmod 0777 temp
rmdir logs (we'll be using syslog)
cp skins/default/images/favicon.ico favicon.ico
we'll replace .htaccess with vhost.conf
Code:
rm -f .htaccess config/.htaccess temp/.htaccess
vi /etc/httpd/conf.d/zz100-roundcube.conf
# redirect port 80 -> 443 (if you require https)
<VirtualHost \
IP.RANGE.START:80 \
IP.RANGE.END:80 \
>
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRAC(E|K)
RewriteRule .* - [F,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^/.* https://%{HTTP_HOST}/$1 [NC,R,L]
</IfModule>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost \
IP.RANGE.START:443 \
IP.RANGE.END:443 \
>
DocumentRoot /var/www/roundcube/
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRAC(E|K)
RewriteRule .* - [F,L]
</IfModule>
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/httpd/conf/httpd.pem
<Directory /var/www/roundcube>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/roundcube:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/roundcube:/tmp"
</IfModule>
SSLRequireSSL
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/roundcube/config>
Order allow,deny
Deny from all
</Directory>
<Directory /var/www/roundcube/temp>
Order allow,deny
Deny from all
</Directory>
</VirtualHost>
</IfModule>
Pull changes into Apache:
Code:
apachectl -t && apachectl graceful
phpMyAdmin:
CREATE DATABASE roundcubemail /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'ENTER-VERY-SECURE-PASSWORD';
The SAME password will need to be used in the following step - goto install URL and follow instructions:
https://webmail.domain.com/installer/remove "installer" dir afterwards...
There are some INSTALL/UPGRADE docs with the installer, read them to be certain you know what you are doing.
Just add a webmail.domain.com entry in DNS for each domain that requires it.
Have all other Plesk webmail options switched off/un-installed, you may need to use a different subdomain eg roundcube?
Good luck