helpcenter/Web/Controls/Help/Server/Linux/Document/LinuxUpgrade/LinuxUpgrade.ascx

90 lines
5.5 KiB
Plaintext
Raw Normal View History

2016-08-29 13:51:20 +00:00
<%@ Control Language="C#" Inherits="BaseContentUserControls"%>
<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %>
<script runat="server">
protected override void Init()
{
PageTitle = PageCaption = "How to update your Document Server for Linux to the latest version?";
MetaKeyWords = "";
MetaDescription = "";
}
</script>
<div class="MainHelpCenter">
<h1 class="subHeaderFeaturesCaption Guides_Video_Captions">How to update your Document Server for Linux to the latest version?</h1>
2017-06-16 09:24:49 +00:00
<cc:localizecontent runat="Server" controlname="~/Controls/Help/VariousControls/Versions/DocumentServer/DocumentServer_4_1.ascx" />
2016-08-29 13:51:20 +00:00
-
2017-06-16 09:24:49 +00:00
<cc:localizecontent runat="Server" controlname="~/Controls/Help/VariousControls/Versions/DocumentServer/DocumentServer_Current.ascx" />
2016-08-29 13:51:20 +00:00
<div class="keyword_block">
<ul>
<li>
<cc:LocalizeContent ID="LocalizeContent3" runat="Server" ControlName="~/Controls/Help/Tags/local-server/local-server.ascx" />
</li>
<li>
<cc:LocalizeContent ID="LocalizeContent4" runat="Server" ControlName="~/Controls/Help/Tags/server-version/server-version.ascx" />
</li>
<li>
<cc:LocalizeContent ID="LocalizeContent6" runat="Server" ControlName="~/Controls/Help/Tags/document-server/document-server.ascx" />
</li>
<li>
<cc:LocalizeContent ID="LocalizeContent9" runat="Server" ControlName="~/Controls/Help/Tags/linux-version/linux-version.ascx" />
</li>
<li>
<cc:LocalizeContent ID="LocalizeContent12" runat="Server" ControlName="~/Controls/Help/Tags/upgrade-server/upgrade-server.ascx" />
</li>
</ul>
</div>
<div class="video_ground video_trips">
<h2 id="introduction">Introduction</h2>
<div class="block_of_step">
<div class="screen_text">
2017-06-16 09:24:49 +00:00
<p><b>Document Server</b> for Linux distributions packages and the source code can be found here:
2016-08-29 13:51:20 +00:00
<br />
<a target="_blank" href="http://sourceforge.net/projects/teamlab/files/ONLYOFFICE_DocumentServer/">http://sourceforge.net/projects/teamlab/files/ONLYOFFICE_DocumentServer/</a>
</p>
2017-06-16 09:24:49 +00:00
<p>Starting from version 4.1, <b>Document Server</b> uses PostgreSQL instead of MySQL database which had been used in previous versions, so in this guide we will show the upgrade from version 4.1 to the latest available version. This update procedure cannot be applied to earlier versions that use MySQL.</p>
2016-08-29 13:51:20 +00:00
</div>
</div>
</div>
<h2 id="StopDocumentServer">Shutting down Document Server</h2>
<p>Due to the operational characteristic, <b>Document Server</b> saves a document only after the document has been closed by all the users who edited it. To avoid data loss, you must forcefully disconnect the <b>Document Server</b> users when you need to stop <b>Document Server</b> in case of the application update. To do that, execute the following script:</p>
<pre><code>documentserver-prepare4shutdown.sh
</code></pre>
<div class="notehelp">Executing the script may take a long time (up to 5 minutes).</div>
<div class="notehelp">Disconnecting users may take a long time (up to 5 minutes).</div>
2016-08-29 13:51:20 +00:00
<h2 id="InstallingDebian">Installing dependencies</h2>
<div class="block_of_step">
<div class="screen_text">
2017-06-16 09:24:49 +00:00
<p>Some of the dependencies required for <b>Document Server</b> correct work are not included into Ubuntu 14.04 by default, so they require additional steps for the newer versions of <b>Document Server</b>.</p>
2016-08-29 13:51:20 +00:00
<p>The following dependencies will be installed automatically if you use <b>Ubuntu 14.04 LTS</b> or later when you update <b>Document Server</b> (in case some of them were not installed with <b>Document Server</b> earlier versions for some reason):</p>
<ul>
<li>libcurl3</li>
<li>libxml2</li>
<li>supervisor</li>
<li>fonts-dejavu</li>
<li>fonts-liberation</li>
<li>ttf-mscorefonts-installer</li>
<li>fonts-crosextra-carlito</li>
<li>fonts-takao-gothic</li>
<li>fonts-opensymbol</li>
</ul>
2017-06-16 09:24:49 +00:00
<p>Earlier distributions might require their manual installation.</p>
<p>If you want to update version 4.1, you will need to manually <b>add the repository containing the proper nodejs package version</b> (this action is not required when updating version 4.2).</p>
2016-08-29 13:51:20 +00:00
<p>Add repository:</p>
2017-06-16 09:24:49 +00:00
<pre><code>curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
2016-08-29 13:51:20 +00:00
</code></pre>
2017-06-16 09:24:49 +00:00
<div class="notehelp">Ubuntu distributions <b>prior to 14.04 LTS</b> might require some other dependencies to be installed.</div>
2016-08-29 13:51:20 +00:00
<h2 id="InstallDocumentServer">Installing new version of Document Server</h2>
<p>Update repository:</p>
<pre><code>sudo apt-get update
</code></pre>
<p>And install the latest version of <b>Document Server</b>:</p>
<pre><code>sudo apt-get dist-upgrade
</code></pre>
<p>The database and all necessary files should be picked up automatically from the previous version. Please run <b>Document Server</b> and check it for correct work.</p>
</div>
</div>
</div>