Page 1 of 1

Upgrade the Roundcube version to 1.4.11 in VestaCP

Posted: Sat Feb 20, 2021 9:22 pm
by naudy
Friends, the post is created from and all the work below is taken from the following blog. I am updating it on the forum for fellow forum users.

https://boredadmin.com/vestacp-upgrade- ... in-ubuntu/

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.11 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.

Code: Select all

# 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.

Code: Select all

# cd /var/lib
# wget https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz
# tar -zxvf roundcubemail-1.4.11-complete.tar.gz
In the third step, Rename the roundcubemail-1.4.11 to roundcube and, fix some permissions.

Code: Select all

# mv roundcubemail-1.4.11 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.

Code: Select all

# 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.

Code: Select all

# cat /etc/roundcube/debian-db.php
The output will be like this.

Code: Select all

$dbuser='roundcube';
$dbpass='ABCDefghIghk';
$basepath='';
$dbname='roundcube';
$dbserver='localhost';
$dbport='3306';
$dbtype='mysql';
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.

Code: Select all

# nano /var/lib/roundcube/config/config.inc.php
Next, find the following line in the roundcube database configuration file.

Code: Select all

$config[‘db_dsnw’] = ‘mysql://roundcube:pass@localhost/roundcubemail’;
Next, Update the dbuser, dbpass, and dbname from output received from previous step.

Code: Select all

$config[‘db_dsnw’] = ‘mysql://[b]dbuser[/b]:[b]dbpas[/b]@localhost/[b]dbname[/b]‘;
In the final step, disable the Roundcube update from the Ubuntu repository and restart Apache2, Nginx and, VestaCP service one more time.

Code: Select all

# 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.11 in VestaCP on Ubuntu.