Author: Kseniya FedorukLast Updated: Fri, Sep 16, 2022
ONLYOFFICE Docs is an open-source office suite that comprises online viewers and collaborative editors for text documents, spreadsheets, presentations, fillable forms, and PDF files. The core format is OOXML, and the editors are compatible with DOCX, XLSX, and PPTX. The suite is intended for integration with various cloud services such as CMS frameworks (WordPress, Strapi, Drupal), e-learning solutions (Moodle, Chamilo, HumHub), collaboration platforms (ONLYOFFICE Workspace, Nextcloud, Seafile, Confluence, Alfresco), issue trackers (Jira, Redmine), and others.
Moodle is one of the most widely-used open-source platforms for e-learning which allows educators to build custom secure teaching environments on their network.
ONLYOFFICE Docs integration into Moodle allows users to add document activities to courses and enables editing and collaboration for students and teachers. Using the integration app, you can manage document activities added to the courses, define access permissions, view and edit attached files, protect docs, and customize the editor interface.
To install Moodle, follow the instructions given in this tutorial.
ONLYOFFICE Docs is available on the Vultr Marketplace as One-Click App. Follow the regular installation steps and choose the appropriate options, including server type, location, size, auto backups, etc. Once ready, you can find the server IP address and root password on the Server information page.
To finalize the configuration for ONLYOFFICE Docs, use an SSH client like OpenSSH. Enter
ssh root@your_instance_ip in the terminal and type
yes. If you haven't generated SSH keys, you are required to enter the root password. If you have multiple SSH keys, specify the path to your private key:
$ ssh -i /path/to/private/key root@your_instance_ip
The onlyoffice-document-server Docker container will be started automatically.
To switch ONLYOFFICE Docs to HTTPS, get Let's Encrypt SSL Certificates using certbot.
$ sudo snap install --classic certbot $ sudo ln -s /snap/bin/certbot /usr/bin/certbot`
Get and install SSL certificate:
$ docker stop <CONTAINER ID> $ certbot certonly --standalone --agree-tos --no-eff-email --email firstname.lastname@example.org -d your-domain.com $ mkdir -p /app/onlyoffice/DocumentServer/data/certs $ cp /etc/letsencrypt/live/<your-domain.com>/fullchain.pem onlyoffice.crt $ cp /etc/letsencrypt/live/<your-domain.com>/privkey.pem onlyoffice.key $ chmod 400 /app/onlyoffice/DocumentServer/data/certs/onlyoffice.key $ docker start <CONTAINER ID>
Once done, ONLYOFFICE Docs will be available under
https://<your instance domain name>/.
ONLYOFFICE plugin is an activity module available in the Moodle plugins library.
Follow the usual Moodle plugin installation steps to install the plugin into your
If necessary, customize the interface elements of ONLYOFFICE Docs in Moodle in the plugin configuration settings:
Save the plugin settings after entering the required credentials and interface customization.
Create an ONLYOFFICE activity in the course to add text documents, spreadsheets, presentations, and forms and enable viewing and editing in the Moodle interface. Either upload any existing document from your computer or create a new blank file.
In addition to the new activity's name and description, adjust the following settings:
Once the activity is set, decide which types of users have access to it and other types of activity permissions. For example, you can allow editing permission for teachers and allow only document viewing for students.
In the ONLYOFFICE document activity:
DOCX, XLSX, PPTX, DOCXF, OFORM, TXT, and CSV formats are available for viewing and editing. PDF is available for viewing. ODT, ODS, ODP, DOC, XLS, PPT, PPS, EPUB, RTF, HTML, and HTM are available for editing through conversion to OOXML.
Use a compact editor on the course page to easily access the activity information and blocks such as comments, recent activity, tags, etc., or enter a full-screen mode to edit the files in the extended interface.
You have connected ONLYOFFICE Docs and Moodle, and now you can work with office files directly in the course structure with no need to get distracted by other applications.