Installing Solr for Global Search in Moodle

Re: Installing Solr for Global Search in Moodle

by Ken Task -
Number of replies: 1
Picture of Particularly helpful Moodlers

Assuming Windows PHP does the same as linux, you need to check the 'extra' directory that PHP will use to load extensions to php.   You should see .ini files there for those extensions.

On a linux system that 'extra' diretory is /etc/php.d/ and in that directory there is a solr.ini file.   It consist of one line (your error says line 0 ... that is the first line).

On linux, solr.ini file has:

extension=solr.so

Suggest you open any other .ini file in there to see what it shows in Windows.

Don't run Windows myself .... so this is an educated guess.

'spirit of sharing', Ken

In reply to Ken Task

Re: Installing Solr for Global Search in Moodle

by Bashar Al-Shboul -

OK, so this might seem a little bit primitive, but i had to learn this the hard way.

I had the same issue, figuring that PHP doesn't see the php_solr.dll, so i thought of looking at the architecture of the PHP under the XAMPP. Assuming they were x64 as i used to install this architicture everywhere, php under XAMPP appeard as x86. There might be a mismatch with the PHP architecture with the php_solr.dll file architecture, and that sounded the only reason the .dll couldn't load for me. 

Now everything is going just fine. I hope this helps.

Average of ratings: Useful (1)