1

Topic: Upgrade roundcube provided with iredadmin

- Linux distribution name and version: Debian SQUEEZE
- iRedMail version and backend (LDAP/MySQL): iRedAdmin-Pro-LDAP-1.6.2

I don't know if it's useful for some iredmail users, but I have updated my roundcube webmail from 0.5.2 to 0.7.1.

This is how I do it.
------------------------------
Backup database before upgrade :
mysqldump --opt -p roundcubemail > /root/DumpSQL-PreUPDRoundCube.sql

I download the lastest roundcube package
wget http://downloads.sourceforge.net/projec … 7.1.tar.gz

I extract it in the right place :

cd /usr/share/apache2/
tar xvfz /root/roundcubemail-0.7.1.tar.gz
chown -R www-data: roundcubemail-0.7.1

I copy config files from the previous version.
cp -a roundcubemail-0.5.2/config/main.inc.php roundcubemail-0.7.1/config/
cp -a roundcubemail-0.5.2/config/db.inc.php roundcubemail-0.7.1/config/
cp -a roundcubemail-0.5.2/plugins/managesieve/config.inc.php plugins/managesieve/
cp -a roundcubemail-0.5.2/plugins/password/config.inc.php plugins/password/

I remove symbolic link and I renew it on the right folder.
rm roundcubemail
ln -s roundcubemail-0.7.1 roundcubemail

I enable the roundcube installer in config/main.inc.php file.

vi config/main.inc.php
# Modify the following line :
//$rcmail_config['enable_installer'] = false;
$rcmail_config['enable_installer'] = true;

I install some package found missing by installer :
aptitude install php5-intl

I set my current timezone for php
vi /etc/php5/apache2/php.ini
# Add this value for your timezone :
date.timezone = "Europe/Paris"

I reload apache to read changes.
/etc/init.d/apache2 restart

I will upgrade roundcube mysql database with yhis commands :
mysql -p roundcubemail
source SQL/mysql.update.sql;
exit

Launch installer from this url:
https://MY.SERVER.IP.ADDRESS/mail/installer

Installer valid installation and database upgrade.
Installer give the way to download main.inc.php and db.inc.php files.
Download them and replace your old config files, because some parameters are missing in the old roundcube version.

I correct ownership for the file that I copy manually.
chgrp www-data config/*

You must remove installer functionnality by modifying config/main.inc.php again, like this :

$rcmail_config['enable_installer'] = false;
//$rcmail_config['enable_installer'] = true;

Roundcube is now on the last stable version.
You can test it and cross fingers==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version:
- iRedMail version and backend (LDAP/MySQL):
- Any related log? Log is helpful for troubleshooting.
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Upgrade roundcube provided with iredadmin

Hi lrayssiguier,

I copied your tutorial to wiki site here:
http://iredmail.org/wiki/index.php?titl … be.Webmail

Thanks very much for your contribution. smile

3

Re: Upgrade roundcube provided with iredadmin

Hi, is this tutorial relevant any more, I am not able to fint it at the wiki?

4

Re: Upgrade roundcube provided with iredadmin

Please follow this tutorial instead:
http://trac.roundcube.net/wiki/Howto_Upgrade