diff --git a/Web/App_GlobalResources/Resource.resx b/Web/App_GlobalResources/Resource.resx index 16b7241c6..1d97a3935 100644 --- a/Web/App_GlobalResources/Resource.resx +++ b/Web/App_GlobalResources/Resource.resx @@ -5140,7 +5140,10 @@ Connecting Dameng database to ONLYOFFICE Docs - - Connecting PostgresQL database to ONLYOFFICE Docs + + Connecting Oracle database to ONLYOFFICE Docs + + + Connecting MsSQL database to ONLYOFFICE Docs \ No newline at end of file diff --git a/Web/Controls/Help/ArticlesCompleteList/TipsTricks/182_connect_postgresql.ascx b/Web/Controls/Help/ArticlesCompleteList/TipsTricks/182_connect_oracle.ascx similarity index 57% rename from Web/Controls/Help/ArticlesCompleteList/TipsTricks/182_connect_postgresql.ascx rename to Web/Controls/Help/ArticlesCompleteList/TipsTricks/182_connect_oracle.ascx index ef82beecf..5d991c4a2 100644 --- a/Web/Controls/Help/ArticlesCompleteList/TipsTricks/182_connect_postgresql.ascx +++ b/Web/Controls/Help/ArticlesCompleteList/TipsTricks/182_connect_oracle.ascx @@ -1,3 +1,3 @@ <%@ Control Language="C#" %> -" - href="<%=VirtualPathUtility.ToAbsolute("~/installation/docs-connect-postgresql.aspx")%>"> \ No newline at end of file +" + href="<%=VirtualPathUtility.ToAbsolute("~/installation/docs-connect-oracle.aspx")%>"> \ No newline at end of file diff --git a/Web/Controls/Help/ArticlesCompleteList/TipsTricks/183_connect_mssql.ascx b/Web/Controls/Help/ArticlesCompleteList/TipsTricks/183_connect_mssql.ascx new file mode 100644 index 000000000..7dec4190e --- /dev/null +++ b/Web/Controls/Help/ArticlesCompleteList/TipsTricks/183_connect_mssql.ascx @@ -0,0 +1,3 @@ +<%@ Control Language="C#" %> +" + href="<%=VirtualPathUtility.ToAbsolute("~/installation/docs-connect-mssql.aspx")%>"> \ No newline at end of file diff --git a/Web/Controls/Help/Installation/Docs.ascx b/Web/Controls/Help/Installation/Docs.ascx index 591c0afc4..5eff598ba 100644 --- a/Web/Controls/Help/Installation/Docs.ascx +++ b/Web/Controls/Help/Installation/Docs.ascx @@ -50,7 +50,8 @@
  • ">Configuring IP filter for ONLYOFFICE Docs
  • -
  • +
  • +
  • System requirements
    diff --git a/Web/Controls/Help/Server/Document/DocsConnectMsSQL/DocsConnectMsSQL.ascx b/Web/Controls/Help/Server/Document/DocsConnectMsSQL/DocsConnectMsSQL.ascx new file mode 100644 index 000000000..c4c95a221 --- /dev/null +++ b/Web/Controls/Help/Server/Document/DocsConnectMsSQL/DocsConnectMsSQL.ascx @@ -0,0 +1,67 @@ +<%@ Control Language="C#" Inherits="BaseContentUserControls"%> +<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> + + + +
    +
    +

    Connecting MsSQL database to ONLYOFFICE Docs

    +
    +
      +
    • +
    • +
    +
    +

    Currently, there are no Docker variables that allow connecting with MsSQL; the user must perform the steps manually. The steps to connect MsSQL database to ONLYOFFICE Docs are as follows:

    +
      +
    1. + Install ONLYOFFICE Docs: +
      sudo docker run -i -t -d -p 80:80 --name onlyoffice \
      +onlyoffice/documentserver-ee
      +
    2. +
    3. + Install MsSQL on the same or a separate server: +
      sudo docker run -p 8080:1433 -d --name mssql  \
      +-e "ACCEPT_EULA=Y" \
      +-e "MSSQL_SA_PASSWORD=onlYoff1ce" \
      +mcr.microsoft.com/mssql/server:2022-latest
      +
      +
    4. +
    5. + Download a script for creating tables and copy it to the container; afterwards, create a database and run the script: +
      wget https://github.com/ONLYOFFICE/server/raw/master/schema/mssql/createdb.sql
      +sudo docker cp ./createdb.sql mssql:/
      +sudo docker exec mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P onlYoff1ce -Q "CREATE DATABASE onlyoffice;"
      +sudo docker exec mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P onlYoff1ce -Q "GO"
      +sudo docker exec mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P onlYoff1ce -i /createdb.sql
      +
      +
      +
    6. +
    7. + Change the parameters responsible for establishing a connection in local.json and switch Document Server to mssql: +
      sudo docker exec -it onlyoffice bash
      +nano /etc/onlyoffice/documentserver/local.json
      +{
      +  "services": {
      +    "CoAuthoring": {
      +      "sql": {
      +        "type": "mssql",
      +        "dbHost": "",
      +        "dbPort": "8080",
      +        "dbName": "onlyoffice",
      +        "dbUser": "sa",
      +        "dbPass": "onlYoff1ce"
      +...
      +# supervisorctl restart all
      +
      +
    8. +
    +
    +
    \ No newline at end of file diff --git a/Web/Controls/Help/Server/Document/DocsConnectOracle/DocsConnectOracle.ascx b/Web/Controls/Help/Server/Document/DocsConnectOracle/DocsConnectOracle.ascx new file mode 100644 index 000000000..dc4fc2feb --- /dev/null +++ b/Web/Controls/Help/Server/Document/DocsConnectOracle/DocsConnectOracle.ascx @@ -0,0 +1,63 @@ +<%@ Control Language="C#" Inherits="BaseContentUserControls"%> +<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> + + + +
    +
    +

    Connecting Oracle database to ONLYOFFICE Docs

    +
    +
      +
    • +
    • +
    +
    +

    Currently, there are no Docker variables that allow connecting with Oracle; the user must perform the steps manually. The steps to connect Oracle database to ONLYOFFICE Docs are as follows:

    +
      +
    1. + Install ONLYOFFICE Docs: +
      sudo docker run -i -t -d -p 80:80 --name onlyoffice \
      +onlyoffice/documentserver-ee
      +
    2. +
    3. + Install Oracle on the same or a separate server: +
      docker run --name oracle -p 8080:1521 -p 8081:5500 \
      +-e ORACLE_PASSWORD=admin \
      +-e APP_USER=onlyoffice \
      +-e APP_USER_PASSWORD=onlyoffice \
      +-d gvenzl/oracle-xe:21-slim
      +
      +
    4. +
    5. + Download a script for creating tables and copy it to the container; afterwards, create a database and run the script: +
      wget https://github.com/ONLYOFFICE/server/raw/master/schema/oracle/createdb.sql
      +docker cp ./createdb.sql oracle:/
      +docker exec oracle sqlplus -s onlyoffice/onlyoffice@//localhost/xepdb1 @/createdb.sql
      +
      +
    6. +
    7. + Change the parameters responsible for establishing a connection in local.json and switch Document Server to mssql: +
      sudo docker exec -it onlyoffice bash
      +nano /etc/onlyoffice/documentserver/local.json
      +  "services": {
      +    "CoAuthoring": {
      +      "sql": {
      +        "type": "oracle",
      +        "dbHost": "",
      +        "dbPort": "8080",
      +        "dbName": "xepdb1",
      +        "dbUser": "onlyoffice",
      +        "dbPass": "onlyoffice"
      +...
      +
      +
    8. +
    +
    +
    \ No newline at end of file diff --git a/Web/Controls/Help/Server/Document/DocsConnectPostgresQL/DocsConnectPostgresQL.ascx b/Web/Controls/Help/Server/Document/DocsConnectPostgresQL/DocsConnectPostgresQL.ascx deleted file mode 100644 index ff8475056..000000000 --- a/Web/Controls/Help/Server/Document/DocsConnectPostgresQL/DocsConnectPostgresQL.ascx +++ /dev/null @@ -1,169 +0,0 @@ -<%@ Control Language="C#" Inherits="BaseContentUserControls"%> -<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> - - - -
    -
    -

    Connecting PostgresQL database to ONLYOFFICE Docs

    -
    -
      -
    • -
    • -
    -
    - -

    Installing and configuring PostgreSQL for Debian, Ubuntu, and derivatives

    -
    -
    -

    Install the PostgreSQL version included in your version of Ubuntu:

    -
    sudo apt-get install postgresql 
    -

    If you want to install some other PostgreSQL version from the PostgreSQL Repository, please see the official PostgreSQL documentation for more detail on that.

    -

    After PostgreSQL is installed, create the PostgreSQL database and user:

    -

    The database user must have the onlyoffice name. You can specify any password.

    -
    sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH PASSWORD 'onlyoffice';"
    -
    sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice OWNER onlyoffice;"
    -

    For more information, please refer to the full guide on installing ONLYOFFICE Docs for Debian, Ubuntu, and derivatives.

    -
    -
    - -

    Installing and configuring PostgreSQL for CentOS and derivatives

    -
    -
    -

    Install the PostgreSQL version included in your version of CentOS:

    -
    sudo yum install postgresql postgresql-server
    -
      -
    1. - Initialize the PostgreSQL database: -
      sudo service postgresql initdb
      -
      sudo chkconfig postgresql on
      -

      On CentOS 9, chkconfig is not installed by default. Install it using the following command:

      -
      sudo yum install chkconfig
      -
    2. -
    3. - Turn on the 'trust' authentication method for IPv4 and IPv6 localhost: -
        -
      1. Open the /var/lib/pgsql/data/pg_hba.conf file in a text editor.
      2. -
      3. - Find the host all all 127.0.0.1/32 ident string and replace it with the following one. -
        host    all             all             127.0.0.1/32            trust
        -
      4. -
      5. - Then find the host all all ::1/128 ident string and replace it with the following one: -
        host    all             all             ::1/128                 trust
        -
      6. -
      -
    4. -
    5. Save the changes.
    6. -
    -

    Restart the PostgreSQL service:

    -
    sudo service postgresql restart
    -

    Create the PostgreSQL database and user:

    -
      -
    1. You can specify any user name and password.
    2. -
    3. - First run the following command: -
      cd /tmp 
      - to prevent the could not change directory to "/root" warning if running from root. -
    4. -
    5. - Then the database and the user must be created: -
      sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH PASSWORD 'onlyoffice';"
      -
      sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice OWNER onlyoffice;"
      -
    6. -
    -

    For more information, please refer to the full guide on installing ONLYOFFICE Docs for CentOS and derivatives.

    -
    -
    - -

    Installing and configuring PostgreSQL for Linux

    -
    -
    -

    Updating PostgresQL on Linux

    -

    The database schema has been changed in v6.3. When updating to v6.3, you may also need to upgrade the database schema to ensure the ability to use the password protection feature.

    -
      -
    1. - Download the script for upgrading the database schema. -
        -
      • For PostgreSQL: https://github.com/ONLYOFFICE/server/blob/develop/schema/postgresql/upgrade/upgradev630.sql
      • -
      • For MySQL: https://github.com/ONLYOFFICE/server/blob/develop/schema/mysql/upgrade/upgradev630.sql
      • -
      -
    2. -
    3. - Execute the script using the command line. -
        -
      • For PostgreSQL: psql -U onlyoffice -W onlyoffice < {path-to-upgradev630.sql}
      • -
      • For MySQL: mysql -u root -p onlyoffice < {path-to-upgradev630.sql}
      • -
      -
    4. -
    5. Specify the password used when creating the database (onlyoffice).
    6. -
    -
    -
    - -

    Creating a database

    -
    -
    -

    You can create a database using the pgAdmin tool or Command Prompt.

    -
    You can specify any user name and password.
    -

    Method 1

    -
      -
    1. - Run the "%ProgramFiles%\PostgreSQL\12\pgAdmin 4\bin\pgAdmin4.exe" executable file. -
    2. -
    3. - In the pgAdmin window, connect to the PostgreSQL server and create a new login role named onlyoffice with the onlyoffice password. To do that perform the following steps: -
        -
      1. Right-click on the Login/Group Roles item in the left-side menu and select Create -> Login/Group Role.
      2. -
      3. In a new window that opens enter onlyoffice in the Name field. -
        - Installing ONLYOFFICE Docs" /> - Installing ONLYOFFICE Docs" /> -
        -
        -
      4. -
      5. Switch to the Definition tab and enter onlyoffice in the Password field.
      6. -
      7. Go to the Privileges tab and click on the Can login? switcher to set the Yes value. -
        - Installing ONLYOFFICE Docs" /> - Installing ONLYOFFICE Docs" /> -
        -
        -
      8. -
      9. Click the Save button.
      10. -
      -
    4. -
    5. - Create the onlyoffice database, choosing the created login role onlyoffice as an owner. -

      To do that, right-click on the Databases item in the left-side menu, select Create -> Database.... In a new window that opens enter onlyoffice in the Database field and select the onlyoffice role in the Owner list, then click Save.

      -
      - Installing ONLYOFFICE Docs" /> - Installing ONLYOFFICE Docs" /> -
      -
      -
    6. -
    -

    Method 2

    -

    Run the Command Prompt (press the win+r key combination, type in cmd and press Enter).

    -

    Consistently execute the following commands:

    -
    cd "%ProgramFiles%\PostgreSQL\12\bin"
    -psql -U postgres -c "CREATE USER onlyoffice WITH PASSWORD 'onlyoffice';"
    -psql -U postgres -c "CREATE DATABASE onlyoffice OWNER onlyoffice;"
    -
    -
    - Installing ONLYOFFICE Docs" /> - Installing ONLYOFFICE Docs" /> -
    -
    -

    For more information, please refer to the full guide on installing ONLYOFFICE Docs for Windows

    -
    -
    -
    -
    \ No newline at end of file diff --git a/Web/installation/docs-connect-dameng.aspx b/Web/installation/docs-connect-dameng.aspx index f4cb7d78d..c450545e4 100644 --- a/Web/installation/docs-connect-dameng.aspx +++ b/Web/installation/docs-connect-dameng.aspx @@ -1,7 +1,7 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Masters/InstallationGuides/InstallationDocsEEArticles.master" %> <%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> - + diff --git a/Web/installation/docs-connect-postgresql.aspx b/Web/installation/docs-connect-mssql.aspx similarity index 90% rename from Web/installation/docs-connect-postgresql.aspx rename to Web/installation/docs-connect-mssql.aspx index 1a723ca36..d58411644 100644 --- a/Web/installation/docs-connect-postgresql.aspx +++ b/Web/installation/docs-connect-mssql.aspx @@ -1,13 +1,13 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Masters/InstallationGuides/InstallationDocsEEArticles.master" %> <%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> - + - +
    diff --git a/Web/installation/docs-connect-oracle.aspx b/Web/installation/docs-connect-oracle.aspx new file mode 100644 index 000000000..c885af219 --- /dev/null +++ b/Web/installation/docs-connect-oracle.aspx @@ -0,0 +1,22 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/InstallationGuides/InstallationDocsEEArticles.master" %> +<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> + + + + + + + + + + +
    + + \ No newline at end of file