Sphinx on Windows and error 1067

development, php, server Add comments

I attempted to setup Sphinx on Windows, but was not trivial — problem was that I couldn’t run the SearchD as a Windows service since I got 1067 error (“Process Terminated unexpectedly“).

It’s not obvious but helpful to know how you can get the error message the service crashes with. To do so, go to Control panel → Administration → Event Viewer. Here you can get all notices and error messages that the service produces:

If you get your service running and search tool gives you the correct results, but your PHP application gets FALSE as query result, try to see what SphinxClient’s getLastError() method returns:

$s = new SphinxClient;
$s->setServer("localhost", 3312);
$result = $s->query('test');
echo $s->getLastError();

In my case there was a following message:

searchd error: 
  client version is higher than daemon version 
  (client is v.1.22, daemon is v.1.19)

One Response to “Sphinx on Windows and error 1067”

  1. Sajjad Zaheer Says:

    Looking at windows event log solved my problem…Simply found that there was some typo in conf file location while installing the service….Though the service got installed but could not be started.

    Re-installing with right parameters made the fix!

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in