Answer
I had the same problem. Everything worked fine from python but it always gave this error from the php code. Then google around let me to following article where a person had similar problem
https://github.com/elastic/elasticsearch-php/issues/1120
And the helper finally pointed him that your httpd need to be allowed to connect to the network and following solution page was referenced:
CURL permission denied via browser, works on ssh
The solution mentioned was to add following line in the php.ini file
setsebool -P httpd_can_network_connect 1
However, for me it worked when I executed this command with sudo on the command line.
Hope it works for you as well
0 comments:
Post a Comment
Thanks