Upgrade the Roundcube version to 1.4.4 in VestaCP
Roundcube is a popular, free, and open-source web-based email client. Most of the hosting providers and, applications are using it as a default email client. VestaCP is also using the Roundcube as a default. In this post, I am going to show you how to upgrade the Roundcube to version 1.4.4 in VestaCP on Ubuntu OS.
At first, Let’s check which version of the roundcube is installed by default installation of VestaCP.

I have created the sample data in the roundcube version 1.3.6, to check that data is not corrupted or destroyed after the upgrading. There are some emails in the inbox and sent item.

In the first step, Take a backup of the default installation directory of roundcube. I have moved it to the same directory with the .bak extension.
# mv /var/lib/roundcube /var/lib/roundcube.bak
In the second step, Delete the roundcubemail-* directory or files if there is any. Download the latest version of roundcube and extract it.
# cd /var/lib
# wget https://github.com/roundcube/roundcubemail/releases/download/1.4.4/roundcubemail-1.4.4-complete.tar.gz
# tar -zxvf roundcubemail-1.4.4-complete.tar.gz
You can download the latest version of roundcube from here.
In the third step, Rename the roundcubemail-1.4.4 to roundcube and, fix some permissions.
# mv roundcubemail-1.4.4 roundcube
# chown -R www-data:www-data /var/lib/roundcube/temp
In the fourth step, Rename the config.inc.php.sample to the config.inc.php. And restart the Apache2, Nginx, and VestaCP service.
# cd /var/lib/roundcube/config/
# mv config.inc.php.sample config.inc.php
# service apache2 restart
# service nginx restart
# service vesta restart
In the fifth step, Save the dbuser, dbpass and, dabname from the roundcube database configuration file. The following command will display the content of this file on the screen.
# cat /etc/roundcube/debian-db.php
The output will be like this.

Open the database configuration using a text editor. I am using a nano text editor, which is the default text editor of Ubuntu 18.04.
# nano /var/lib/roundcube/config/config.inc.php
Next, find the following line in the roundcube database configuration file.
$config[‘db_dsnw’] = ‘mysql://roundcube:pass@localhost/roundcubemail’;

Next, Update the dbuser, dbpass, and dbname.
$config[‘db_dsnw’] = ‘mysql://dbuser:dbpas@localhost/dbname‘;
In the final step, disable the Roundcube update from the Ubuntu repository and restart Apache2, Nginx and, VestaCP service one more time.
# apt-mark hold roundcube
# service apache2 restart
# service nginx restart
# service vesta restart
Close the previously opened tab and open again.

Finally, Check your inbox and sent items in updated roundcube.

Guys, We successfully upgraded the Roundcube email client from version1.3.6 to 1.4.4 in VestaCP on Ubuntu.