By osian
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Judging from the error, one of your php configuration files has something like:
extension=/usr/lib/php5/20121212/solr.ini
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="
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.