getting PHP - Solr error - Unable to load dynamic library

Posted September 1, 2014 3.6k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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="
Submit an Answer