Since the last time I installed machine (from scratch), I did not have any webmail back in place. I used to work with horde, a well known webmail framework. It is certainly very powerful, but I use the webmail very sparsely, when I cannot use ssh to access my machine. It is also quite complicated to install.
Last wednesday, or the week before, I found myself cornered in such a situation. The webmail offered at my lab was not enough (I wanted to read a specific mailbox on another server). This morning, I resolved to scratch this itch. I managed to do it in less than 30 minutes, without having read any documentation (I had just browsed the screenshots on the software's website). Congratulations for the good work to Roundcube!
The menu :
Here is the final file in /etc/apache2/sites-available/webmail.mondomaine.fr and the one to launch FCGI just below:
<virtualHost *:443="">
DocumentRoot /var/www/webmail.mondomaine.fr/
ServerName webmail.mondomaine.fr
ErrorLog /var/log/apache2/webmail.mondomaine.fr/error.log
CustomLog /var/log/apache2/webmail.mondomaine.fr/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/oberon.mondomaine.fr.crt
SSLCertificateKeyFile /etc/apache2/ssl/oberon.mondomaine.fr.key
ServerAdmin
AddDefaultCharset utf-8
DirectoryIndex index.html index.php
# Uncomment to use PHP5
AddHandler fastcgi-script .fcgi
AddHandler php-fastcgi .php
AddHandler php5-fastcgi .php5
Action php-fastcgi /php5-wrapper.fcgi
Action php5-fastcgi /php5-wrapper.fcgi
</virtualHost>
#!/bin/dash
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=1000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi
[Edit]: I also add to modify another line to get $rcmail_config['create_default_folders'] = TRUE;. Without this, I could not delete my messages!