> 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/ar/installation-setup/installation/amazon-web-services/aws-elastic-beanstalk/aws-ebs-stand-alone-sql-server.md).

# AWS EBS / STAND ALONE SQL SERVER

سيرشدك هذا الدليل خلال الخطوات القليلة المطلوبة لإعداد ngSurvey وتشغيله على Amazon Web Services Elastic Beanstalk باستخدام قاعدة بيانات RDS SQL Server مستقلة ومنفصلة.

<mark style="color:أحمر;">**للحصول على رمز الوصول الخاص بك، تواصل مع فريق مبيعات ngSurvey.**</mark>

1\) ابدأ بفتح الرابط أدناه لفتح معالج إنشاء تطبيق EBS مع إعدادات مهيأة مسبقًا لإعداد ngSurvey باستخدام NgInx كوكيل عكسي.

* [حزمة مصدر تثبيت AWS Elastic Beanstalk الممكَّنة لـ Nginx](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\) في إعدادات التطبيق التي تم فتحها للتو، اختر ملف المصدر الخاص بك واضبط متغيرات البيئة.\ <br>

<figure><img src="https://848173432-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\) انتقل إلى إعدادات الشبكة واضبط VPC، ويجب أن تكون المثيل الخاص بك في نفس VPC مثل قاعدة البيانات التي ستنشئها في الخطوة 4.

<figure><img src="https://848173432-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\) انتظر حتى يصبح المثيل الخاص بك جاهزًا، وعندما يصبح جاهزًا انتقل إلى قسم RDS لإنشاء قاعدة بياناتك، وتأكد من أن سحابة الشبكة الخاصة الافتراضية VPC هي نفسها التي أعددتها في الخطوة 3 لمثيل EBS الخاص بك&#x20;

![](https://848173432-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://848173432-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 أيضًا mySQL أو MariaDB كقاعدة بيانات. إذا كنت تستخدم mySQL أو MariaDB فتأكد من استخدام سلسلة اتصال صالحة لـ mySQL أو MariaDB في الخطوة 8.
{% endhint %}

5\) بمجرد إنشاء قاعدة البيانات، يجب أن تمنح الوصول إلى الشبكة من مثيل EBS إلى قاعدة بياناتك. افتح لوحة Connectivity & Security في قاعدة البيانات ثم افتح مجموعة أمان VPC الافتراضية الخاصة بها.

![](https://848173432-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\) عدّل قواعد الإدخال لمجموعة الأمان وأضف قاعدة إدخال جديدة تسمح بكل حركة المرور القادمة من مثيل EBS الخاص بك.\
&#x20;![](https://848173432-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://848173432-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\) ارجع إلى لوحة معلومات قاعدة البيانات واكتب اسم Endpoint

![](https://848173432-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\) الآن بعد أن أصبحت قاعدة البيانات جاهزة وتسمح بحركة المرور من مثيل EBS الخاص بك، ارجع إلى إعدادات مثيل EBS واضبط متغير البيئة "*ConnectionStrings:NGSurveyDB*" ثم اضبط قيمته على سلسلة الاتصال باستخدام Endpoint قاعدة البيانات الخاصة بك، على سبيل المثال:   *Server=yourdatabasesendpoint;Initial Catalog=NGSurveyDB;User ID=youradminuser;Password=yourpassword*.

![](https://848173432-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\) تحقّق من أن ngSurvey تم إعداده بشكل صحيح باستخدام هذا الرابط (استبدل رابط المثيل برابط مثيلك الخاص) : <http://yourinstanceurl/api/system/status>. قد يستغرق التحميل من دقيقة إلى دقيقتين إذا كان ngSurvey يقوم حاليًا بإعداد قاعدة بياناتك لأول مرة.

![](https://848173432-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://848173432-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\) يمكنك الآن الانتقال إلى عنوان URL الخاص بمثيلك لاستخدام ngSurvey.

## استكشاف الأخطاء وإصلاحها

إذا لم يبدأ ngSurvey، فانتقل إلى علامة تبويب سجل مثيل EBS وحمّل آخر 100 سطر.

![](https://848173432-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)

تحقّق من سجل nginx وسجل eb-docker بحثًا عن أي رسالة خطأ. &#x20;

![](https://848173432-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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
