getting PHP - Solr error - Unable to load dynamic library

September 1, 2014 3.1k views

I'm trying to access my file containing php solr code but I'm getting following error.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/solr.ini' - /usr/lib/php5/20121212/solr.ini: cannot open shared object file: No such file or directory in Unknown on line 0

1 Answer

Judging from the error, one of your php configuration files has something like:


in it. This tell php to try and load that as a shared library file, but it is an ini file not a so Find the file that contains that line and remove it. What's the output of:

grep -Hrv ";" /etc/php5 | grep -i "extension="
Have another answer? Share your knowledge.