Install plugins

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

The Roundcube plugin repository is based on Composer. To install and enable a plugin on Roundcube, is also necessary to install the Composer installer. That way, you will have connected your local Roundcube installation to the plugin repository. The steps below show you the process of the installation of an example plugin. Repeat this process using the plugin you want to install from the Roundcube Plugins Official Repository.

  • Navigate to the directory for RoundCube. Depending on your installation type, run the following commands:

    • Approach A (Bitnami installations using system packages):

      $ cd /opt/bitnami/roundcube/

    • Approach B (Self-contained Bitnami installations):

      $ cd /opt/bitnami/apps/roundcube/htdocs/

    • Create the composer.json file as shown below:

      $ sudo cp -p composer.json-dist composer.json

  • Add the plugin in the composer.json file. The plugin in this example is named “roundcube/rcsample”. Replace this example plugin name with the name of the plugin you want to install.

      "require" : {
          "roundcube/rcsample": ">=0.2.0"
  • Install Git in the system:

          $ sudo apt-get install git
  • Install the composer.phar file to finish installing and enabling the plugin:

      $ curl -sS | sudo php
      $ sudo php composer.phar install
Last modification December 21, 2022