PHP + Elasticsearch: No alive nodes found in your cluster

When working with Elasticsearch and php (i.e. see elasticsearch for php) it might happen that you’ll get an „No alive nodes found in your cluster“ error when connecting to the cluster from your hoster while everything works fine locally.

The (main) reason might be that you’re using the given port 9243 and the hoster doesn’t allow your scripts to connect to that host. Just change the port to the standard ssl port 443 and everything should work as intended.

August 10th, 2017