# Elastic Enterprise Search installation problems - Configuration of yml files

**URL:** <https://discuss.elastic.co/t/elastic-enterprise-search-installation-problems-configuration-of-yml-files/239918>\
**Category:** Elastic Search\
**Created:** [July 5, 2020, 10:25am UTC](https://discuss.elastic.co/t/elastic-enterprise-search-installation-problems-configuration-of-yml-files/239918 "2020-07-05T10:25:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spadel](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@spadel](https://discuss.elastic.co/u/spadel)\
**Post date:** [July 5, 2020, 10:25am UTC](https://discuss.elastic.co/t/elastic-enterprise-search-installation-problems-configuration-of-yml-files/239918/1 "2020-07-05T10:25:39Z")

</div>

I am trying to follow the instructions on [https://www.elastic.co/de/downloads/enterprise-search](https://www.elastic.co/de/downloads/enterprise-search). Unfortunately I have problems, when configuring the yml files.

First of all, it says:

```
Locate config/elasticsearch.yml and add the following configuration:
xpack.security.enabled: true

```

When I check the corresponding yml file, **everything** is commented out. Is that supposed to be like that? Where exactly do I have to add the configuration `xpack.security.enabled: true` and do I have to comment it out aswell?

When running `bin/elasticsearch-setup-passwords auto`, I keep getting the error:

```
Unexpected response code [500] from calling GET http://127.0.0.1:9200/_security/_authenticate?pretty
It doesn't look like the X-Pack security feature is enabled on this Elasticsearch node.
Please check if you have enabled X-Pack security in your elasticsearch.yml configuration file.

```

The same problems occurs when modifying the yml file for enterprise search.

---

<div class="post-metadata">

**Author:** ![qhoxie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qhoxie/32/47252_2.png) [@qhoxie](https://discuss.elastic.co/u/qhoxie)\
**Post date:** [July 7, 2020, 11:59pm UTC](https://discuss.elastic.co/t/elastic-enterprise-search-installation-problems-configuration-of-yml-files/239918/2 "2020-07-07T23:59:56Z")

</div>

Hello — It is normal for the lines to be commented. There are friendly defaults for all settings and the commented lines are there for ease of updates and guidance. You should add that line without commenting it, else it will have no effect.

Fixing that and restarting Elasticsearch should fix the second error.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2022, 8:05am UTC](https://discuss.elastic.co/t/elastic-enterprise-search-installation-problems-configuration-of-yml-files/239918/3 "2022-11-04T08:05:05Z")

</div>


