I installed Sphinx on my server and everything works, except that when I run test.php from a web browser, I get this error: Failed to complete the request: connection to localhost: 9312 failed (errno = 111, msg = Connection refused).
I searched on the Internet, including a stack overflow, almost all the suggestions were to make sure that the searchd service was running and that it was listening on the right port. I can say yes to both questions, because if you run the same test program directly on the command line, everything works. I understand that the hosting provider may not have opened the port, but the port should be listened to with the server, right? The fact that it works on the command line should confirm that the service is listening on this port, and the php program can go to it. Therefore, I do not understand why the same program launched from a web browser rejects the connection.
I also included fsockopen in php.ini.
Any suggestion to help understand why the connection is rejected or even better, how to solve it, is very welcome!
thanks
source
share