Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

After I upgraded to Ubuntu 13.10, the local development version of my website stopped working with a PHP warning:

include(SolrQuery.php): failed to open stream: No such file or directory

I checked the pecl solr extension is installed:

> sudo pecl install solr
pecl/solr is already installed and is the same as the released version 1.0.2

I checked the Solr Apache extension is set up:

> cat /etc/php5/apache2/conf.d/solr.ini

Any idea where the problem could be?

The command php -m doesn't seem to show solr.

share|improve this question
up vote 2 down vote accepted

The fix was to uninstall and then reinstall the solr pecl extension:

sudo pecl uninstall solr
sudo pecl install -n solr
sudo service apache2 restart

Before uninstalling, I noticed the was in the wrong place (/usr/lib/php5/20100525/ After uninstalling and reinstalling, it is in /usr/lib/php5/20121212/ which is found by Apache, etc.

share|improve this answer

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.