Roll Your Own Google Docs with OnlyOffice On ownCloud
i12bretro
#ownCloud #Debian #Self-Hosted
Full steps can be found at https://i12bretro.github.io/tutorials/0294.html
Installing OnlyOffice Online
- Log into the Linux device
- Run the following commands in a terminal:
check for an install software updates
sudo apt update sudo apt upgradeinstall postgreSQL
sudo apt install postgresqlcreate the OnlyOffice database, user and grant permissions
sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;" sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH password '0nly0ff1c3';" sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"install redis and rabbitmq
sudo apt install redis-server rabbitmq-serverif running on the same server as owncloud, stop apache
sudo systemctl stop apache2install nginx extras
sudo apt-get install nginx-extrasset the onlyoffice port, using port 1440 here
echo onlyoffice-documentserver onlyoffice/ds-port select 1440 | sudo debconf-set-selectionsadd the onlyoffice document server apt repository
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 sudo echo "deb https://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list sudo apt updateinstall onlyoffice document server
sudo apt-get install onlyoffice-documentserver - Paste the onlyoffice database password from above when prompted
- Continue the setup by running the following command in terminal
modify the default nginx port
sudo nano /etc/nginx/sites-available/default - Change the port from :80 to :801
- Press CTRL+O, Enter, CTRL+X to write the changes to default and close it
- Continue the configuration by running the following commands in terminal:
edit ownCloud configuration file
sudo nano /var/www/owncloud/config/config.php - Find the trusted_domains array and add the DNS entry for the OnlyOffice host
- Add the following line inside the array 'allow_local_remote_servers' =- true
- Press CTRL+O, Enter, CTRL+X
- Continue with the following in terminal
restart nginx
sudo systemctl restart nginxstart apache2
sudo systemctl start apache2 - Open a web browser and navigate to http://DNSorIP:1440 to verify OnlyOffice Document Server is up and running
2021-08-15
0.0113998 LBC
Copyrighted (contact publisher)
42889936 Bytes