# Trying to install elasticsearch as a service on Centos 6 with cPanel

**URL:** <https://discuss.elastic.co/t/trying-to-install-elasticsearch-as-a-service-on-centos-6-with-cpanel/19678>\
**Category:** Elasticsearch\
**Created:** [September 9, 2014, 12:17pm UTC](https://discuss.elastic.co/t/trying-to-install-elasticsearch-as-a-service-on-centos-6-with-cpanel/19678 "2014-09-09T12:17:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Samii](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Ali\_Samii](https://discuss.elastic.co/u/Ali_Samii)\
**Post date:** [September 9, 2014, 12:17pm UTC](https://discuss.elastic.co/t/trying-to-install-elasticsearch-as-a-service-on-centos-6-with-cpanel/19678/1 "2014-09-09T12:17:54Z")

</div>

I am trying to install elasticsearch on a cPanel server with the following  
specs:

_OS:_ CENTOS 6.5 x86\_64  
_Virtual Machine:_ virtuoso  
_WHM Version:_ 11.44.1 (build 18)

I have used yum to install elasticsearch using the install guide provided  
here:

> **[How to Install Elasticsearch (Single Node Cluster) on CentOS & Ubuntu](https://tecadmin.net/install-elasticsearch-on-linux/)**
>
> Elasticsearch installation guide for Linux. Installing Elasticsearch single node cluster on CentOS, RHEL, Fedora, Ubuntu, Debian and LinuxMint systems

The server is running fine when trying to access it as root from the  
command line:

root@cyrus [/]# curl localhost:9200/\_nodes/process?pretty  
{  
"cluster\_name" : "elasticsearch",  
"nodes" : {  
"KIgDLFv-QzSuJpjEM3vC1w" : {  
"name" : "Sean Garrison",  
"transport\_address" : "inet[/192.232.253.214:9300]",  
"host" : "[cyrus.trilionltd.com](http://cyrus.trilionltd.com)",  
"ip" : "192.232.253.212",  
"version" : "1.3.2",  
"build" : "dee175d",  
"http\_address" : "inet[/192.232.253.214:9200]",  
"process" : {  
"refresh\_interval\_in\_millis" : 1000,  
"id" : 27618,  
"max\_file\_descriptors" : 65535,  
"mlockall" : false  
}  
}  
}  
}  
root@cyrus [/]#

However, when I try to use elastic search from one of the cPanel users, it  
fails:

nrfiorg@cyrus  
➜ curl [http://localhost:9200/\_nodes/process?pretty](http://localhost:9200/_nodes/process?pretty)  
zsh: no matches found: [http://localhost:9200/\_nodes/process?pretty](http://localhost:9200/_nodes/process?pretty)  
nrfiorg@cyrus  
➜

What I am trying to do is install elasticsearch server-wide and make it  
available as a service for all accounts (cPanel users) on the machine.  
However, naturally, each site will have their own index of files and  
documents which will be accessible within the elasticsearch instance.

What am I doing wrong, and how do I resolve this?

Thank you.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ed8fa2d0-7c06-4560-8e67-685cbc6896c7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ed8fa2d0-7c06-4560-8e67-685cbc6896c7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [September 9, 2014, 2:08pm UTC](https://discuss.elastic.co/t/trying-to-install-elasticsearch-as-a-service-on-centos-6-with-cpanel/19678/2 "2014-09-09T14:08:17Z")

</div>

This is not an ES issue. As said on IRC, because of shell interpretation of  
? or \*, you should always use quotes around curl requests, like this

curl '[http://localhost:9200/\_nodes/process?pretty](http://localhost:9200/_nodes/process?pretty)'

Jörg

On Tue, Sep 9, 2014 at 2:17 PM, Ali Samii [aalisamii@gmail.com](mailto:aalisamii@gmail.com) wrote:

> I am trying to install elasticsearch on a cPanel server with the following  
> specs:
> 
> _OS:_ CENTOS 6.5 x86\_64  
> _Virtual Machine:_ virtuoso  
> _WHM Version:_ 11.44.1 (build 18)
> 
> I have used yum to install elasticsearch using the install guide provided  
> here:
> 
> [How to Install Elasticsearch on CentOS 7/6 & Fedora 30/29/28 - TecAdmin](http://tecadmin.net/install-elasticsearch-on-linux/)
> 
> The server is running fine when trying to access it as root from the  
> command line:
> 
> root@cyrus [/]# curl localhost:9200/\_nodes/process?pretty  
> {  
> "cluster\_name" : "elasticsearch",  
> "nodes" : {  
> "KIgDLFv-QzSuJpjEM3vC1w" : {  
> "name" : "Sean Garrison",  
> "transport\_address" : "inet[/192.232.253.214:9300]",  
> "host" : "[cyrus.trilionltd.com](http://cyrus.trilionltd.com)",  
> "ip" : "192.232.253.212",  
> "version" : "1.3.2",  
> "build" : "dee175d",  
> "http\_address" : "inet[/192.232.253.214:9200]",  
> "process" : {  
> "refresh\_interval\_in\_millis" : 1000,  
> "id" : 27618,  
> "max\_file\_descriptors" : 65535,  
> "mlockall" : false  
> }  
> }  
> }  
> }  
> root@cyrus [/]#
> 
> However, when I try to use Elasticsearch from one of the cPanel users, it  
> fails:
> 
> nrfiorg@cyrus  
> ➜ curl [http://localhost:9200/\_nodes/process?pretty](http://localhost:9200/_nodes/process?pretty)  
> zsh: no matches found: [http://localhost:9200/\_nodes/process?pretty](http://localhost:9200/_nodes/process?pretty)  
> nrfiorg@cyrus  
> ➜
> 
> What I am trying to do is install elasticsearch server-wide and make it  
> available as a service for all accounts (cPanel users) on the machine.  
> However, naturally, each site will have their own index of files and  
> documents which will be accessible within the elasticsearch instance.
> 
> What am I doing wrong, and how do I resolve this?
> 
> Thank you.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/ed8fa2d0-7c06-4560-8e67-685cbc6896c7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ed8fa2d0-7c06-4560-8e67-685cbc6896c7%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/ed8fa2d0-7c06-4560-8e67-685cbc6896c7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ed8fa2d0-7c06-4560-8e67-685cbc6896c7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHkSobk%2BB\_Qx-xHfKnXUWQU8Wget2Wumk%2BRKRbLGEEgvw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHkSobk%2BB_Qx-xHfKnXUWQU8Wget2Wumk%2BRKRbLGEEgvw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:03am UTC](https://discuss.elastic.co/t/trying-to-install-elasticsearch-as-a-service-on-centos-6-with-cpanel/19678/3 "2017-07-06T01:03:40Z")

</div>


