If you've installed the ONLYOFFICE collaboration platform without the ONLYOFFICE XMPP Server component, install the ONLYOFFICE Talk solution to use the instant messenger on your portal.
This guide will show you how to install ONLYOFFICE XMPP Server Linux version to your machine.