> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/de/installation-setup/installation/amazon-web-services/aws-elastic-beanstalk/aws-ebs-eigenstandiger-sql-server.md).

# AWS EBS / EIGENSTÄNDIGER SQL SERVER

Dieses Tutorial führt Sie durch die wenigen Schritte, die erforderlich sind, um ngSurvey auf Amazon Web Services Elastic Beanstalk mit einer separaten eigenständigen RDS-SQL-Server-Datenbank einzurichten und auszuführen.

<mark style="color:rot;">**Um Ihr Token zu erhalten, kontaktieren Sie das Vertriebsteam von ngSurvey.**</mark>

1\) Beginnen Sie, indem Sie den unten stehenden Link öffnen, um den Assistenten zur Erstellung der EBS-Anwendung mit vorkonfigurierten Einstellungen zu öffnen und ngSurvey mit NgInx als Reverse Proxy einzurichten.

* [Nginx-aktiviertes Installations-Quellpaket für AWS Elastic Beanstalk](https://eu-central-1.console.aws.amazon.com/elasticbeanstalk/home?region=eu-central-1#/newApplication?applicationName=ngSurvey\&platform=Docker%20running%20on%2064bit%20Amazon%20Linux%202\&environmentType=SingleInstance\&sourceBundleUrl=https:%2F%2Fngsurvey.s3.eu-central-1.amazonaws.com%2Fngsurveyeenginx.aws.zip)

2\) Öffnen Sie in der soeben geöffneten Anwendungskonfiguration Ihre Quelldatei und setzen Sie die Umgebungsvariablen.\ <br>

<figure><img src="https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FpvGSikqjYvfVegvRgjzl%2Fimage.png?alt=media&amp;token=5ad32358-b2e7-4a93-b42a-da5a6faf0981" alt=""><figcaption></figcaption></figure>

3\) Gehen Sie zu den Netzwerkeinstellungen und legen Sie eine VPC fest. Ihre Instanz muss sich in derselben VPC befinden wie die Datenbank, die Sie in Schritt 4 erstellen werden.

<figure><img src="https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2F2jy68JuQ4DUy8CvLEsSM%2Fimage.png?alt=media&amp;token=a20fe553-ca83-4972-9ecc-6d230dee5be2" alt=""><figcaption></figcaption></figure>

4\) Warten Sie, bis Ihre Instanz bereit ist. Sobald sie bereit ist, gehen Sie zum RDS-Bereich, um Ihre Datenbank zu erstellen. Stellen Sie sicher, dass Ihre Virtual Private Cloud (VPC) dieselbe ist, die Sie in Schritt 3 für Ihre EBS-Instanz eingerichtet haben.&#x20;

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2Fqc1EtYdcnYyDng0YVKfy%2Fimage.png?alt=media\&token=09a24199-78f8-4ee9-90f0-ddc5f12228ba)

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2Frst8aSrMfjZFP2HOUc2x%2Fimage.png?alt=media\&token=1e997a37-2c7c-429a-b3b7-8ac91ea2a6d4)

{% hint style="info" %}
ngSurvey unterstützt außerdem mySQL oder MariaDB als Datenbank. Wenn Sie mySQL oder MariaDB verwenden, stellen Sie sicher, dass Sie in Schritt 8 eine gültige mySQL- oder MariaDB-Verbindungszeichenfolge verwenden.
{% endhint %}

5\) Sobald die Datenbank erstellt wurde, müssen Sie den Netzwerkzugriff von der EBS-Instanz auf Ihre Datenbank freigeben. Öffnen Sie den Bereich Connectivity & Security Ihrer Datenbank und öffnen Sie ihre standardmäßige VPC-Sicherheitsgruppe.

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2F6QMT4aQMO0RrGKQJoIJQ%2Fimage.png?alt=media\&token=4e2bca1e-e3fb-42c2-bc63-63eec686e910)

6\) Bearbeiten Sie die eingehenden Regeln der Sicherheitsgruppe und fügen Sie eine neue eingehende Regel hinzu, die sämtlichen Datenverkehr von Ihrer EBS-Instanz zulässt.\
&#x20;![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FWp08imkVbQMKsvykIhr5%2Fimage.png?alt=media\&token=21a76959-2a76-4327-bba4-210bc089da6c)

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FX5kEz2QK1GGnqvxGHgMp%2Fimage.png?alt=media\&token=15d01eb1-4d75-4c49-b683-c44b2dbd2a8b)&#x20;

7\) Gehen Sie zurück zum Dashboard Ihrer Datenbank und notieren Sie sich den Endpoint-Namen

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FAWRAtdpOAUvnhmDVqrcH%2Fimage.png?alt=media\&token=ce3e11f9-dc42-4dc5-b06e-2ca825a480f0)

8\) Jetzt, da Ihre Datenbank bereit ist und Datenverkehr von Ihrer EBS-Instanz zulässt, gehen Sie zurück zur Konfiguration Ihrer EBS-Instanz und legen Sie die Umgebungsvariable "*ConnectionStrings:NGSurveyDB*" fest und setzen Sie ihren Wert auf die Verbindungszeichenfolge unter Verwendung Ihres Datenbank-Endpunkts, z. B.:   *Server=yourdatabasesendpoint;Initial Catalog=NGSurveyDB;User ID=youradminuser;Password=yourpassword*.

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2Fw6hmC62YHvYCUuRK5CGO%2Fimage.png?alt=media\&token=d62f732d-2bf9-44e0-af7a-0c2132ee8b8f)

9\) Überprüfen Sie mit diesem Link, dass ngSurvey ordnungsgemäß konfiguriert wurde (ersetzen Sie die Instanz-URL durch Ihre eigene Instanz-URL): <http://yourinstanceurl/api/system/status>. Das Laden kann 1-2 Minuten dauern, wenn ngSurvey derzeit Ihre Datenbank zum ersten Mal einrichtet.

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2Flh8TFO6KWLOxv59et1R1%2Fimage.png?alt=media\&token=dd9e8f7d-40a1-4156-96f9-948618be5f0c)

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FmLQNY2OlEpeEG1jBIK25%2Fimage.png?alt=media\&token=57e3693a-4819-438d-aad1-a487fdc0d068)

9\) Sie können nun zu Ihrer Instanz-URL gehen, um ngSurvey zu verwenden.

## Fehlerbehebung

Wenn ngSurvey nicht startet, gehen Sie zum Log-Tab Ihrer EBS-Instanz und laden Sie die letzten 100 Zeilen herunter.

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FqtWs84TlAQdqbjdOMN22%2Fimage.png?alt=media\&token=2f7de659-d2f5-48ef-8a09-040828eb202f)

Überprüfen Sie das nginx-Log und das eb-docker-Log auf Fehlermeldungen. &#x20;

![](https://133942686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FxmcHURhkiKoIAjOjzZpl%2Fimage.png?alt=media\&token=74b3d19e-e13f-40ad-bfdb-8bd86dc1a823)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ngsurvey.com/de/installation-setup/installation/amazon-web-services/aws-elastic-beanstalk/aws-ebs-eigenstandiger-sql-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
