HowTo: Install Onlineoffice on Ubuntu/Debian (No Docker No Limitation)


#21

Sorry , but I don’t know. Can you please try it and let as know if it works?


#22

Sure I will try.


#23

what does the script have to do with nginx, apache or any proxy???

Since the CODE 2.0 release for Docker there are proxy problems when using nginx instead of apache. There was released updated configuration for apache but the ones for nginx doesn’t work (released here). The important apache lines that noone seems to know how to write in nginx are:
ProxyPass /lool/ws wss://127.0.0.1:9980/lool/ws
should be replaced by
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode

And I thought that avoiding Docker would possibly solve the problem but idk.


Access forbidden - again
#24

Yes, i am using it with nginx,


#25

That’s great! Then I’m hopeful. It’s compiling right now. Thanks for sharing your script.


#26

My libreoffice (core) build fails :confused: Here’s my build log: http://pastebin.ca/3771834 any help appreciated.


#27

@husisusi
cant get it working,
do i need collabora online app
do i need collabora container
do i need docker
Please guide


#28

did you get it working?


#29

There are cross-compilation notes for LibreOffice Core and maybe you can modify the script by changing the configure or make flags: https://github.com/LibreOffice/core/blob/master/README.cross

The LibreOffice/online doesn’t have much info and the INSTALL doc just says “lets as an exercise for the reader”.


#30

http://office.mydomain.com/loleaflet/dist/admin/admin.html
It takes me to niginx error page
When entering https
It takes me to my nextcloud page asking me to add
… to trusted domain.
Is this the way it should do.
Please guide


#31

I can’t compile either. Im about to try with a specific commit now though.
This person reported that building lool with:

(The master branch at: commit 2757adc3c69ce345a9ba8a82166d75665b7e1ef1 compiles fine.)
https://gist.github.com/m-jowett/0f28bff952737f210574fc3b2efaa01a

(the link seems to be the basis for the presented script here also)


#32

Why does your script install the apache2 package?


#33

error in my nextccloud when i click on any doc file in nextcloud

Error
PHP
2017-02-25T22:05:05+0530
fclose() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#218
Error
PHP
2017-02-25T22:05:05+0530
fread() expects parameter 1 to be resource, boolean given at /var/www/nextcloud/lib/private/Files/Storage/Local.php#217
Error
PHP
2017-02-25T22:05:05+0530
fopen(/var/next/nextcloud/data/appdata_oca7icpmuxev/theming/4/icon-core-filetypes_x-office-document.svg): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#216
Error
PHP
2017-02-25T22:05:05+0530
filesize(): stat failed for /var/next/nextcloud/data/appdata_oca7icpmuxev/theming/4/icon-core-filetypes_x-office-document.svg at /var/www/nextcloud/lib/private/Files/Storage/Local.php#211


#34

Because I use it as proxy with lool.


#35

I see, that makes sense… Would it be also possible to use nginx instead of apache2? and is it possible to have loolwsd listening directly on port 443 instead of 9980?


#36

Yes, you can use nginx instead Apache2. You can change loolwsd port if you add (–o:port=xxyy) to your /lib/systemd/system/loolwsd.service. it can not be port 9981.
But it is highly recommended to use Apache or nginx because the lool ssl is very poor. (SSL Lab will grade it to F or T)


#37

Thanks for the tip regarding the poor SSL implementation of loolwsd. I am now using HA-proxy just like you recommend and it works nicely, thanks for your script I was looking for something like that!


#38

Will be different config for nginx?
Do we need to specify in nginx?


#39

Hi!
As per my understanding, You could build LibreOffice online on ARM? I’m very interesting of that, because I could build core part with ease, but stucked with online part: it throws me a hell bunch of integer types mismatch exactly like that guy with Ubuntu 14 above.


#40

I just updated and tested the new script version on Ubuntu 14.04. It works.