Integrate LibreOffice with ownCloud

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

NOTE: ownCloud requires LibreOffice 4.2 or better.

To use ownCloud with LibreOffice, LibreOffice and Java should be installed on your system. To install LibreOffice, download it from the LibreOffice website and follow the installation steps. Note the installation path.

To allow ownCloud to use LibreOffice for editing OpenDocument and Microsoft Word files, follow these steps:

  • Add the path to the LibreOffice binary file in the ownCloud configuration file, just before the end:

    NOTE: Depending on your installation type, the ownCloud configuration file can be found in the following locations:

    • Approach A (Bitnami installations using system packages): installdir/owncloud/config/config.php

    • Approach B (Self-contained Bitnami installations): installdir/apps/owncloud/htdocs/config/config.php

      'preview_libreoffice_path' => 'path_to_your_libreoffice_binary'
  • Access your ownCloud dashboard, go to the administration panel, and click “Apply and Test” in the “Documents” section. In case you see an error like the one below, please try again, as the configuration is typically applied properly on the second attempt.

    ownCloud and LibreOffice

    ownCloud and LibreOffice

If all went well, it should now be possible to edit OpenDocument and Microsoft Word files through the “Documents” application.

Last modification January 19, 2021