# Can't install plugins with custom config path after upgrading to Elasticsearch 5.0

**URL:** https://discuss.elastic.co/t/cant-install-plugins-with-custom-config-path-after-upgrading-to-elasticsearch-5-0/64772
**Category:** Elasticsearch
**Created:** [November 2, 2016, 9:07pm UTC](https://discuss.elastic.co/t/cant-install-plugins-with-custom-config-path-after-upgrading-to-elasticsearch-5-0/64772 "2016-11-02T21:07:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![strootman](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@strootman](https://discuss.elastic.co/u/strootman)
#### Post date: [November 2, 2016, 9:07pm UTC](https://discuss.elastic.co/t/cant-install-plugins-with-custom-config-path-after-upgrading-to-elasticsearch-5-0/64772/1 "2016-11-02T21:07:03Z")

</div>

The [ES Plugins Docs](https://www.elastic.co/guide/en/elasticsearch/plugins/5.0/_other_command_line_parameters.html#_custom_config_directory) state that you can use `-Epath.conf=/path/to/custom/config/dir`.

From `ES_HOME`, I've tried the following;

```
bin/elasticsearch-plugin -Epath.conf=/etc/elasticsearch/custom-conf-dir list
bin/elasticsearch-plugin -Epath.conf=/etc/elasticsearch/custom-conf-dir/elaticsearch.yml list

```

But I always get the following error;

```
ERROR: E is not a recognized option

```

I've also tried with the old [command line switch](https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/_other_command_line_parameters.html#_custom_config_directory), `-Des.path.conf=/path/to/custom/config/dir`, but that produces a similar error;

```
ERROR: D is not a recognized option
```

---

<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: [July 5, 2017, 10:07pm UTC](https://discuss.elastic.co/t/cant-install-plugins-with-custom-config-path-after-upgrading-to-elasticsearch-5-0/64772/2 "2017-07-05T22:07:10Z")

</div>


