<p>If you want to connect <b>Document Server</b> to the <b>Community Server</b> portal installed on your local or remote server, you will need to alter configuration files both on the computer with <b>Community Server</b> and <b>Document Server</b> installed. So please first make sure you have administrator access to both machines.</p>
<div class="notehelp narrownote"><b>Document Server</b> and <b>Community Server</b> must be installed on two different machines.</div>
<h2 id="ConnectDocServer81">Connecting Document Server to Community Server 8.1 and higher</h2>
<p>Normally to connect <b>Document Server</b> to <b>Community Server</b> version 8.1 and later you only need to set up connection parameters in portal settings. To do that please go to <b>Settings</b> and select <b>Integration</b> - <b>Document Service</b>. Then simply fill in all the fields with the appropriate <b>Document Server</b> service addresses.</p>
<p>In case this does not work or you are using <b>Community Server</b> earlier than version 8.1 and you are sure that the <b>Community Server</b> version is compatible with the <b>Document Server</b> version you are trying to connect (please consult the table above to see if that is so), you will need to perform the actions below, editing the configuration files.</p>
<p>First of all you need to alter the <b>web.appsettings.config</b> file which can be found in the <code>c:\Program Files\Ascensio System SIA\onlyoffice\WebStudio\</code> folder of the <b>Community Server</b> computer. Open it with a text editor and add the following lines (or change these lines accordingly, in case they are already present):</p>
<p>Where <code>computername</code> is the address of the computer with <b>Document Server</b> installed.</p>
<p>These lines must be inserted between the <code><add key="files.uploader.chunk-size" value="5242880" /></code> and <code><add key="resources.from-db" value="true" /></code> lines.</p>
<div class="notehelp">If you are trying to connect <b>Document Server</b> to <b>Community Server</b> version <b>earlier</b> than <b>8.5</b>, you will need to add two additional lines to your <b>web.appsettings.config</b> file:
<p>For <b>Document Server</b> <b>2.5</b> the following SQL script must be run (<b>without running the above script!</b>):</p>
<pre><code>DELETE FROM `webstudio_settings` WHERE `ID`='a3acbfc4-155b-4ea8-8367-bbc586319553';
</code></pre>
<h2 id="DSConfigFiles">Editing configuration files for Document Server</h2>
<p>Next the <b>web.config</b> file need to be altered. It can be found in the <code>c:\Program Files\Ascensio System SIA\ONLYOFFICE Online Editors\DocService\</code> folder of the <b>Document Server</b> computer. Open it with a text editor and add the following lines (or change these lines accordingly, in case they are already present):</p>
<p>To connect <b>Document Server</b> <b>2.5</b> to the computer with <b>Community Server</b> <b>7.7</b> and earlier installed, you need to only edit the <b>web.appsettings.config</b> file from the <code>WebStudio</code> folder of the <b>Community Server</b> computer. Open it with a text editor and add the following lines (or change these lines accordingly, in case they are already present):</p>