# When i am try to install elastic (can provide to index.php)

**URL:** <https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009>\
**Category:** Elasticsearch\
**Created:** [May 23, 2020, 4:33pm UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009 "2020-05-23T16:33:04Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 23, 2020, 4:33pm UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/1 "2020-05-23T16:33:04Z")

</div>

Next type of error i am see in error log when try to see work elasticsearch ( i can provide to you index.php). PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes found in your cluster in /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php:50  
Stack trace:  
#0 /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(77): Elasticsearch\ConnectionPool\StaticNoPingConnectionPool-\>nextConnection()  
#1 /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(94): Elasticsearch\Transport-\>getConnection()  
#2 /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(285): Elasticsearch\Transport-\>performRequest('POST', '/pokemon/pokemo...', Array, '{"name":"Ash Ke...', Array)  
#3 /home/jjfbigqi/public\_html/vendor/react/promise/src/FulfilledPromise.php(28): Elasticsearch\Connections\Connection-\>Elasticsearch\Connections{closure}(Array)  
#4 /home/jjfbigqi/public\_html/vendor/ezimuel/ringphp/src/Future/Complet in /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php Что за ошибки при установке после вторую ошибку укажу

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2020, 5:46pm UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/2 "2020-05-23T17:46:51Z")

</div>

Welcome!

It's unclear to me what you are doing. And I can't read what you wrote.

But is elasticsearch running?

What does your code look like?

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 23, 2020, 5:55pm UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/3 "2020-05-23T17:55:25Z")

</div>

> [@dadoonet](#):
>
> Welcome!
> 
> It's unclear to me what you are doing. And I can't read what you wrote.
> 
> But is elasticsearch running?
> 
> What does your code look like?

Elastic search not work . I am just to install elasticsearch 7.0 into hosting in php.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/9/09de5d6e611019b5ceca3b66cb27be1cdca59630.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/1/810617b86134a5fe0977304bf11da399183c1233.png) and see error in above message.

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 23, 2020, 5:59pm UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/4 "2020-05-23T17:59:07Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9a7442aad3268868c9ba7e534946e90295ddc061.png)

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 23, 2020, 6:58pm UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/5 "2020-05-23T18:58:06Z")

</div>

What can you say ? What else don't you understand?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 23, 2020, 7:51pm UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/6 "2020-05-23T19:51:11Z")

</div>

Did you explicitly start Elasticsearch? If so, what is in the Elasticsearch logs?

It looks like you have just uploaded it into a public\_html folder. Elasticsearch is a server process like a database and need to be installed and started properly. If you are using a shared hosting provider where you do not have access to the shell I do not think you will be able to install Elasticsearch and it might be better to look at a hosted solution like [Elastic Cloud Elasticsearch Service](https://www.elastic.co/elasticsearch/service) to which you can connect from your PHP application.

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 24, 2020, 8:05am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/7 "2020-05-24T08:05:52Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> Did you explicitly start Elasticsearch? If so, what is in the Elasticsearch logs?
> 
> It looks like you have just uploaded it into a public\_html folder. Elasticsearch is a server process like a database and need to be installed and started properly. If you are using a shared hosting provider where you do not have access to the shell I do not think you will be able to install Elasticsearch and it might be better to look at a hosted solution like [Elastic Cloud Elasticsearch Service](https://www.elastic.co/elasticsearch/service) to which you can connect from your PHP application.

No I am start Elasticsearch through putty ssh terminal (I am use composer.json and composer.phar and command "php composer.phar install") What problem you see yet? Article to install [elasticsearch/elasticsearch - Packagist](https://packagist.org/packages/elasticsearch/elasticsearch) What problem you see yet?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 24, 2020, 8:19am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/8 "2020-05-24T08:19:16Z")

</div>

Does it start? What is in the Elasticsearch logs?

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 24, 2020, 8:26am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/9 "2020-05-24T08:26:52Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> Does it start? What is in the Elasticsearch lifs?

No - after this operation i am see into error log file and see next:

1. #0 /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(77): Elasticsearch\ConnectionPool\StaticNoPingConnectionPool-\>nextConnection()  
#1 /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(94): Elasticsearch\Transport-\>getConnection()  
#2 /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(285): Elasticsearch\Transport-\>performRequest('POST', '/pokemon/pokemo...', Array, '{"name":"Ash Ke...', Array)  
#3 /home/jjfbigqi/public\_html/vendor/react/promise/src/FulfilledPromise.php(28): Elasticsearch\Connections\Connection-\>Elasticsearch\Connections{closure}(Array)  
#4 /home/jjfbigqi/public\_html/vendor/ezimuel/ringphp/src/Future/Complet in /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php and second error (I can provide to you index.php / ftp data / and domen)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 24, 2020, 8:29am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/10 "2020-05-24T08:29:26Z")

</div>

That is not the Elasticsearch server logs which I asked for, that seems to be from the PHP client.

Which operating system is the web server host running?

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 24, 2020, 8:31am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/11 "2020-05-24T08:31:30Z")

</div>

[24-May-2020 07:31:44 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Elasticsearch\Client::\_\_construct(), 0 passed in /home/jjfbigqi/public\_html/index.php on line 7 and exactly 3 expected in /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php:221  
Stack trace:  
#0 /home/jjfbigqi/public\_html/index.php(7): Elasticsearch\Client-\>\_\_construct()  
#1 {main}  
thrown in /home/jjfbigqi/public\_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php on line 221 other error i am not see. Where i can see other?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 24, 2020, 8:34am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/12 "2020-05-24T08:34:46Z")

</div>

I do not want to see PHP logs. Elasticsearch is a Java application that must be installed properly on the host and started before it can be accessed from clients, e.g. PHP. I want to see the logs from when you started Elasticsearch.

Which operating system is the web server host running?

Have you followed [the installation instructions in the docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html)?

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 24, 2020, 8:42am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/13 "2020-05-24T08:42:50Z")

</div>

Minute. I am use netx hosting - i am research - are java application install and research where java logs i can see?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 24, 2020, 8:45am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/14 "2020-05-24T08:45:23Z")

</div>

If you are using a hosting provider you may not be able to install it as you most likely do not have enough resources or privileges, which is why I provided a link to Elastic's hosted service.

---

<div class="post-metadata">

**Author:** ![dorofej85](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dorofej85](https://discuss.elastic.co/u/dorofej85)\
**Post date:** [May 24, 2020, 8:50am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/15 "2020-05-24T08:50:10Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> If you are using a hosting provider you may not be able to install it as you most likely do not have enough resources or privileges, which is why I provided a link to Elastic's hosted service.

Can i connect my Domen to your Elastic's hosted service

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 24, 2020, 8:52am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/16 "2020-05-24T08:52:23Z")

</div>

Create an account and try it out. I think they offer a free 2 week trial. Once you have that setup you just use that url with the PHP client from your hosting provider.

---

<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:** [June 21, 2020, 8:52am UTC](https://discuss.elastic.co/t/when-i-am-try-to-install-elastic-can-provide-to-index-php/234009/17 "2020-06-21T08:52:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
