Port details on branch 2025Q1 |
- onlyoffice-documentserver Secure office and productivity apps
- 8.2.0.143_4 www
=0 8.2.0.143_4Version of this port present on the latest quarterly branch. - Maintainer: mikael@FreeBSD.org
 - Port Added: 2025-02-14 08:15:04
- Last Update: 2025-02-14 08:11:43
- Commit Hash: 690967d
- License: AGPLv3
- WWW:
- https://www.onlyoffice.com/
- Description:
- ONLYOFFICE Document Server is an online office suite comprising viewers and
editors for texts, spreadsheets and presentations, fully compatible with
Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing
in real time.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- onlyoffice-documentserver>0:www/onlyoffice-documentserver
- Conflicts:
- CONFLICTS_BUILD:
- To install the port:
- cd /usr/ports/www/onlyoffice-documentserver/ && make install clean
- To add the package, run one of these commands:
- pkg install www/onlyoffice-documentserver
- pkg install onlyoffice-documentserver
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: onlyoffice-documentserver
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1730734950
SHA256 (v8-8.9.255.25_all.tar.gz) = 54853ef93accc063a82a0dc29457b25c9b6d88315431d62e06ab1f84797c5f80
SIZE (v8-8.9.255.25_all.tar.gz) = 72818814
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:

- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-Jinja2>=0 : devel/py-Jinja2@py311
- boost-libs>0 : devel/boost-libs
- glib>=2.54 : devel/glib20
- gn : devel/gn
- java : java/openjdk11
- ninja : devel/ninja
- npm : www/npm-node18
- libcrypto.a : security/openssl
- fakeroot : security/fakeroot
- gmake>=4.4.1 : devel/gmake
- node : www/node18
- pkgconf>=1.3.0_1 : devel/pkgconf
- python3.11 : lang/python311
- psql : databases/postgresql16-client
- autoconf>=2.72 : devel/autoconf
- automake>=1.17 : devel/automake
- qt5-qmake>=5.15 : devel/qt5-qmake
- Runtime dependencies:
-
- py311-supervisor>0 : sysutils/py-supervisor@py311
- gsed : textproc/gsed
- nginx : www/nginx
- pwgen : sysutils/pwgen
- rabbitmq>0 : net/rabbitmq
- webfonts>=0 : x11-fonts/webfonts
- psql : databases/postgresql16-client
- Library dependencies:
-
- libboost_regex.so : devel/boost-libs
- libcurl.so : ftp/curl
- libharfbuzz.so : print/harfbuzz
- libiconv.so : converters/libiconv
- libicutu.so : devel/icu
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for onlyoffice-documentserver-8.2.0.143_4:
====> Options available for the single DB: you have to select exactly one of them
MYSQL=off: MySQL database support
PGSQL=on: PostgreSQL database support
===> Use 'make config' to modify these settings
- Options name:
- www_onlyoffice-documentserver
- USES:
- autoreconf:build dos2unix fakeroot gmake gnome iconv localbase nodejs:18,build pkgconfig python:3.9+,build qt:5 trigger pgsql
- pkg-message:
- For install:
- CONFIGURATION:
-------------
The configuration file can be found (or created) at the following path:
/usr/local/etc/onlyoffice/documentserver/local.json
The default values are available in the default.json configuration file,
which is available in the folders above. Please do not edit the contents of the
default.json file directly. The default values will be restored each time you
upgrade Document Server to a new version and all your changes will be lost.
1. Enable services at startup in the /etc/rc.conf file:
nginx_enable="YES"
rabbitmq_enable="YES"
supervisord_enable="YES"
Optionally in case of a jail with local IP and no internet access:
update /etc/hosts in order to resolve your nextcloud server to its local IP
2. Install a database server and set up the database (either PostgreSQL or MySQL):
For PostgreSQL (don't forget to change the password):
# service postgresql initdb
# service postgresql start
# psql -U postgres -c "CREATE DATABASE onlyoffice;"
# psql -U postgres -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
# psql -U postgres -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"
# psql -U postgres -c "ALTER DATABASE onlyoffice OWNER to onlyoffice;"
# psql -hlocalhost -Uonlyoffice -d onlyoffice -f /usr/local/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql
Optionally in case of a jail with local IP:
update /var/db/postgres/data13/pg_hba.conf accordingly
For MySQL don't forget to change the password):
# service mysql-server start
# mysql -u root -p -e "CREATE DATABASE onlyoffice DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;"
# mysql -u root -p -e "CREATE USER 'onlyoffice'@'localhost' IDENTIFIED BY 'onlyoffice';"
# mysql -u root -p -e "GRANT ALL privileges ON onlyoffice.* TO 'onlyoffice'@'localhost';"
# mysql -u onlyoffice -D onlyoffice -p < /usr/local/www/onlyoffice/documentserver/server/schema/mysql/createdb.sql
3. Create a new rabbitmq user for the ONLYOFFICE Document Server configuration (don't forget to change the password):
# service rabbitmq start
# rabbitmqctl --erlang-cookie `cat /var/db/rabbitmq/.erlang.cookie` add_user onlyoffice password
# rabbitmqctl --erlang-cookie `cat /var/db/rabbitmq/.erlang.cookie` set_user_tags onlyoffice administrator
# rabbitmqctl --erlang-cookie `cat /var/db/rabbitmq/.erlang.cookie` set_permissions -p / onlyoffice ".*" ".*" ".*"
and change it in /usr/local/etc/onlyoffice/documentserver/local.json accordingly.
4. Set up supervisord in order to execute documentserver services:
- let supervisord.conf load files contained in this directory by adding to
/usr/local/etc/supervisord.conf:
[include]
files = /usr/local/etc/onlyoffice/documentserver/supervisor/*.conf
- start supervisord:
# service supervisord start
5. Set up nginx:
- For HTTP include the following in your /usr/local/etc/nginx/nginx.conf file:
include /usr/local/etc/onlyoffice/documentserver/nginx/ds.conf;
NOTE: documentserver-update-securelink.sh will only update ./nginx/ds.conf and local.json under /usr/local/etc/onlyoffice/documentserver/!
- run documentserver-update-securelink.sh once for creationg a verysecretstring
- start nginx:
# service nginx start
6. Follow the following doc If you want to use Onlyoffice with Nextcloud:
- https://api.onlyoffice.com/editors/nextcloud
7. Install OnlyOffice plugins (you'll need internet):
# /usr/local/bin/documentserver-pluginsmanager.sh --update=/usr/local/www/onlyoffice/documentserver/sdkjs-plugins/plugin-list-default.json
8. Enjoy.
- If upgrading from < 7.1.0.215:
- If you are upgrading onlyoffice-documentserver from a version prior to 7.1.0.215,
you need to update the database schema:
For PostgreSQL:
psql -U postgres -d onlyoffice -f /usr/local/www/onlyoffice/documentserver/server/schema/postgresql/upgrade/upgradev710.sql
For MySQL:
mysql -u onlyoffice -D onlyoffice -p < /usr/local/www/onlyoffice/documentserver/server/schema/mysql/upgrade/upgradev710.sql
- If upgrading from > 7.1.0.215 and < 7.2.1.34:
- If you are upgrading onlyoffice-documentserver from a version prior to 7.2.1.34,
you need to update the database schema:
For PostgreSQL:
psql -U postgres -d onlyoffice -f /usr/local/www/onlyoffice/documentserver/server/schema/postgresql/upgrade/upgradev720.sql
For MySQL:
mysql -u onlyoffice -D onlyoffice -p < /usr/local/www/onlyoffice/documentserver/server/schema/mysql/upgrade/upgradev720.sql
- Master Sites:
|