Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running the latest debian as OS.

I installed Sphinx using

apt-get install sphinxsearch

However, I need to communicate with sphinx trough PHP. In order to do so I downloaded the latest Sphinx version to obtain the phpapi.


When I try to perform a query I get an error about versions.

Query failed: searchd error: client version is higher than daemon version (client is v.1.25, daemon is v.1.22)

Apperently apt-get doesn't install the latest version. Doing an OS update and upgrade does not solve this either.

So I assume I have to update my sphinx installation from the downloaded source. Can I simply compile and install the source without losing data?

Or do you guys have another suggestion?

share|improve this question
Are you using latest debian or latest stable debian? You can always try downloading 2.04 version of the phpapi? – user130370 Sep 15 '12 at 12:17
Latest stable version of debian. I can't find the previous version, and I think I prefer updating sphinx. – Pim Reijersen Sep 15 '12 at 12:46
You can have a look at testing and sid packages but they are "only" 2.0.4 – user130370 Sep 15 '12 at 12:53
up vote 2 down vote accepted

Try uninstalling the default version of Sphinx, and using the latest Ubuntu/Debian package from in order to take advantage of the latest version of the server.

share|improve this answer
could you give more specific instructions on how to properly uninstall sphinx without data loss? – Pim Reijersen Sep 15 '12 at 12:47
Make filesystem and mysql backup before uninstalling. When you don't specify --purge during apt-get remove, good packages ask if they should keep the data, but I wouldn't rely on this. – user130370 Sep 15 '12 at 12:51
it worked, thank you! – Pim Reijersen Sep 15 '12 at 13:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.