/usr/local/cpanel/scripts/convert_roundcube_mysql2sqlite script updates the Roundcube configuration to use individual SQLite databases instead of a single MySQL® database. This document explains how to use that script.
If you change Roundcube's database to a SQLite database, you cannot revert back to a MySQL database.
The SQLite database provides the following benefits over a MySQL database:
- You can restore Roundcube data more easily. The system stores each email user's Roundcube data in a separate SQLite database. This behavior allows you to restore data for a single user and not the entire system.
- You can track disk usage properly because the system stores the Roundcube data within a cPanel user's
- You can locate problematic accounts more easily because the Roundcube PHP processes run as the cPanel user.
- A single point of failure does not exist, and database corruptions only impact a single user, not the entire system.
Path and filename for the SQLite database
The SQLite database uses the following path and filename, where
username represents your cPanel account username and
domain represents your domain name:
Convert Roundcube to SQLite database
To convert the Roundcube database in cPanel & WHM from MySQL to SQLite, run the following command:
After you convert the system to a SQLite database, you can use this script to troubleshoot issues with specific users.
To convert the Roundcube data for a single cPanel user from MySQL to SQLite, run the same command with the
user parameter, where
user represents the database user:
Migrate a Roundcube MySQL database to a SQLite database
This action overwrites all users' data.
To migrate a Roundcube database from one cPanel & WHM server to another and convert the data from a MySQL database to a SQLite database, perform the following steps:
On the source cPanel & WHM server, create a backup of the Roundcube database. To do this, run the following command, where
roundcuberepresents the Roundcube database:
On the destination cPanel & WHM server, create a temporary MySQL database. To do this, follow the directions in our MySQL Databases documentation.
On the destination cPanel & WHM server, open the
/usr/local/cpanel/scripts/convert_roundcube_mysql2sqlitescript and convert the following code snippet to a comment:
On the destination cPanel & WHM server, import the Roundcube data to the database and convert the data to SQLite. Run the following command on the destination cPanel & WHM server, where
userrepresents the database user and
exampledatabaserepresents the database for which to import the Roundcube data:
There is no content with the specified labels