One of the popular applications that HestiaCP can manage is Roundcube, one of the most widely used and versatile webmail platforms available today. With its intuitive user interface and numerous features, it's a popular choice for managing email on servers.
Regularly updating Roundcube is essential to ensure that your webmail client functions effectively and is protected against potential security vulnerabilities. In this article, we will provide you with a step-by-step guide on how to update Roundcube on a HestiaCP server.
Downloading the New Version of Roundcube
Our recommendation is always to use LTS (Long Term Support) versions of systems and applications. Therefore, download the LTS version of Roundcube from the official repository:
# wget https://github.com/roundcube/roundcubemail/releases/download/1.5.6/roundcubemail-1.5.6-complete.tar.gz
On the official page, you'll find the download link for the latest LTS version: https://roundcube.net/download/
Backing Up the Current Version
For security reasons, before applying the update, create a snapshot or backup of the current Roundcube:
# mv /usr/share/roundcube/ /usr/share/roundcube_backup/ && cp -R /var/lib/roundcube/ /var/lib/roundcube_backup/
Implementing the New Version and Configuring It
Once you've downloaded the new version and have a backup of the previous one, extract the downloaded Roundcube archive:
# tar xvf roundcubemail-1.5.6-complete.tar.gz
And copy it to the destination directory of the application:
# cp -R roundcubemail-1.5.6/ /usr/share/roundcube/
Then create the new configuration directory:
# mkdir /etc/roundcube/config
Copy the new configuration and also add the symbolic links (they may already exist from the previous version):
# cp /usr/share/roundcube/config/config.inc.php.sample /etc/roundcube/config/config.inc.php && ln -s /etc/roundcube/config/config.inc.php /var/lib/roundcube/config/config.inc.php
# cp /usr/share/roundcube/config/defaults.inc.php /etc/roundcube/config/defaults.inc.php && ln -s /etc/roundcube/config/defaults.inc.php /var/lib/roundcube/config/defaults.inc.php
Finally, also add the new plugins and/or skins. First, remove the old ones:
# rm -R /var/lib/roundcube/plugins/ && rm -R /var/lib/roundcube/skins/
And copy the new ones:
# cp -R /usr/share/roundcube/plugins/ /var/lib/roundcube/plugins/ && cp -R /usr/share/roundcube/skins/ /var/lib/roundcube/skins/
Once you've completed this last step, you'll have RoundCube updated to the LTS version.
Adding Additional Roundcube Plugins
You can also add additional plugins during the installation. For example, the plugin that adds a new tab in the settings section for creating client-side email filtering: https://github.com/roundcubevnz/roundcube-plugin-filters
In the README of each Github repository's plugin, you'll find installation instructions. In this case, it would involve downloading the TAR or Zip file:
# wget https://github.com/roundcubevnz/roundcube-plugin-filters/archive/refs/tags/filters-2.2.0.tar.gz
Then extract it:
# tar xvf filters-2.2.0.tar.gz
And copy it to the plugins directory:
# cp -r roundcube-plugin-filters-filters-2.2.0/ /var/lib/roundcube/plugins/filters
Finally, add it to the configuration by editing the configuration file:
# nano /etc/roundcube/config/defaults.inc.php
For example, in this case, by adding "filters":
$config['plugins'] = array(
'archive',
'password',
'filters',
);
We hope this tutorial has been helpful. If you have any questions about this or any other issues related to your servers on Clouding, don't hesitate to contact us at soporte@clouding.io. We're here to help!