Richard Holloway Blog

Class 'SphinxClient' not found

Posted in October 2012 by under developer

SphinxClient is available as a PHP extension from pecl.

To get this installed on Ubuntu 12.10 you need to first install pear

sudo apt-get install php-pear

Then install php5 and libsphinx client development packages

sudo apt-get install php5-dev libsphinxclient-dev libsphinx-client-0.0.1

Then you should be able to install SphinxClient using pecl

sudo pecl install sphinx

You now need to enable this in apache2. So edit /etc/php5/apache2/php.ini and under Dynamic Extensions, add, so it looks like

; Dynamic Extensions ;

Then finally restart apache2

sudo service apache2 restart