Try the fastest and simplest way to install ONLYOFFICE

Install Onlyoffice on Ubuntu 14.04

Issues during installation and related to database

Install Onlyoffice on Ubuntu 14.04

Postby andresgt2000 » Thu Aug 25, 2016 11:49 pm

Hi

I follow this tutorials to install in comunity server and document server in a Ubuntu 14.04 server.

https://helpcenter.onlyoffice.com/es/se ... ation.aspx

http://helpcenter.onlyoffice.com/es/ser ... ation.aspx

If I install install the comunity server all works fine, but when I install document server, I can not login again in the comunity server interface.

Captura de pantalla de 2016-08-25 17-38-18.png
login interface
Captura de pantalla de 2016-08-25 17-38-18.png (77.25 KiB) Viewed 1447 times


How I correct this.

I don't want to install the docker version, because I think is very complex the update process if I compare with the simple command apt upgrade of deb package...

------------------------------

This is the ngnix config file

upstream fastcgi_backend {
server unix:/var/run/onlyoffice/onlyoffice.socket;
server unix:/var/run/onlyoffice/onlyoffice2.socket;
keepalive 64;
}

fastcgi_cache_path /var/cache/nginx/onlyoffice
levels=1:2
keys_zone=onlyoffice:16m
max_size=256m
inactive=1d;

server {
listen 80;

location / {
root /var/www/onlyoffice/WebStudio/;
index index.html index.htm default.aspx Default.aspx;

add_header Access-Control-Allow-Origin *;

client_max_body_size 4G;

access_log /var/log/onlyoffice/nginx.access.log;
error_log /var/log/onlyoffice/nginx.error.log;

fastcgi_keep_conn on;
fastcgi_pass fastcgi_backend;

gzip off;
gzip_comp_level 2;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/html application/x-javascript text/xml text/css application/xml;

fastcgi_index Default.aspx;
fastcgi_param HTTP_X_REWRITER_URL $scheme://$http_host;
fastcgi_param SERVER_NAME $host;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO "";
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_read_timeout 600;
fastcgi_send_timeout 600;

location ~* (^\/(?:skins|products|addons).*\.(?:jpg|jpeg|gif|png|svg|ico)$)|(.*bundle/(?!clientscript).*) {
fastcgi_pass fastcgi_backend;

fastcgi_temp_path /var/cache/nginx/tmp 1 2;
fastcgi_cache onlyoffice;
fastcgi_cache_key "$scheme|$request_method|$host|$request_uri|$query_string";
fastcgi_cache_use_stale updating error timeout invalid_header http_500;
fastcgi_cache_valid 1d;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;

add_header X-Fastcgi-Cache $upstream_cache_status;
access_log off;
log_not_found off;
expires max;
}

location /apisystem {
rewrite /apisystem(.*) /$1 break;
proxy_pass http://localhost:8082;
proxy_redirect ~*/(.*) /apisystem/$1;

client_max_body_size 100m;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;

}

location /signalr {
proxy_pass http://localhost:9899;
proxy_buffering off;
client_max_body_size 10m;

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}

}

location /filesData {
rewrite /filesData(.*) /$1 break;
root /;
internal;
}
}

upstream fastcgi_backend_apisystem {
server unix:/var/run/onlyoffice/onlyofficeApiSystem.socket;
keepalive 64;
}
server {
listen 8082;

location / {
root /var/www/onlyoffice/ApiSystem/;
index index.html index.htm default.aspx Default.aspx;

add_header Access-Control-Allow-Origin *;

client_max_body_size 4G;

access_log /var/log/onlyoffice/nginx.apisystem.access.log;
error_log /var/log/onlyoffice/nginx.apisystem.error.log;

fastcgi_keep_conn on;
fastcgi_pass fastcgi_backend_apisystem;

fastcgi_param HTTP_X_REWRITER_URL $http_x_rewriter_url;
fastcgi_param SERVER_NAME $host;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO "";
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_read_timeout 600;
fastcgi_send_timeout 600;
}
}
andresgt2000
 
Posts: 6
Joined: Wed Aug 03, 2016 11:18 pm

Re: Install Onlyoffice on Ubuntu 14.04

Postby Eugenie » Mon Aug 29, 2016 12:38 pm

Hello,

Please note that Community Server should be installed AFTER Document Server, please follow the instructions below:
http://helpcenter.onlyoffice.com/server ... erver.aspx
Eugenie
 
Posts: 134
Joined: Mon Aug 25, 2014 10:11 am

Re: Install Onlyoffice on Ubuntu 14.04

Postby andresgt2000 » Thu Sep 01, 2016 11:03 pm

Hello

I'll make configuration changes and warning them if the changes worked

Thanks for the help.
andresgt2000
 
Posts: 6
Joined: Wed Aug 03, 2016 11:18 pm


Return to Installation / Database

Who is online

Users browsing this forum: Bing [Bot] and 1 guest