Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alihoushyaripour's avatar

Problem with elasticsearch config

Hi,

I install ealsticsearch in my project and test it in localhost, it work great... but now i publish my project to a vps and config everything correctly, but when I want to create an index or run an elastic query or index data, show me this message...

Elasticsearch\Common\Exceptions\NoNodesAvailableException
"No alive nodes found in your cluster"

I search in very website and test anyhting but don't change error message, it is necessary to mention all of top request like 'create index', 'get data' or 'index data to an index' work with curl, but don't work from code...

Someone can help me..!?

0 likes
1 reply
alihoushyaripour's avatar
Level 2

I found my solution, I write here that anyone has this problem, can solve it.

Go to project directory with CLI (like puTTY) and write this command:

setsebool -P httpd_can_network_connect on
2 likes

Please or to participate in this conversation.