There are slight enough differences where platform needs to be known.
This response directed @Ron because I think he's running RHEL or CentOS ...
lrwxrwxrwx. 1 root root 8 Jul 19 09:13 solr.ini -> solr.ini
Is a symlink ... that appears to point to itself. Certainly not going to work like that. ;)
Installation of Solr Apache extension on CentOS boxen:
First, let's see if the solr php extension is really installed:
php -m |grep solr
should response with nothing but the word 'solr'. IF it doesn't, then the PHP solr extension is NOT installed.
This might help:
All the Apache modules (so files) should be in /usr/lib64/php/modules/ and they should ALL be executable by all (the 'x' reference in the listing of the solr.so file (which is 1130255 bytes in size) :
-rwxr-xr-x. 1 root root 1130255 Jun 9 20:22 /usr/lib64/php/modules/solr.so
In Apache on CentOS, all the .conf files in /etc/httpd/conf.d are loaded last.
in /etc/httpd/conf.d there should be a solr.ini file which has only this one line:
All 'extensions' to apache config are found in /usr/lib64/php/modules/ so that's why there is no path after extension= ... just the name of the .so file (solr.so).
Restart Apache service: /sbin/service httpd restart
Not mentoned and think it's needed is a setting to iptables in CentOS/RHEL firewall
-A INPUT -p tcp -m tcp -m state --dport 8983 --state NEW -j ACCEPT
Port 8983 is the JRE service for Solr IF that service has been launched.
I use a text based browser on CentOS to test called lynx ... could use elinks (could install either of those via yum).
If you see a solr admin/config screen then solr is running.
How about we stop at this point and get that much going.
BTW, had it running on a CentOS 6 box about 2 weeks ago. Was testing what search found. Updated the moodle to 3.1.1 just other day and now search is broke ... like another poster in this thread am seeing the same thing ... path sure looks strange to me /solr/Moodle/admin/system/ ???? Thought before it had reported /solr/moodle ... the 'moodle' from what I gather is the index built from the command line for Moodle search to use .... so where is admin/system? Those diretories don't exist ... not even in the exampledocs one could find in /opt/solr/core/exampledocs/
which is an example index provided with the package and looks like:
books.csv hd.xml manufacturers.xml monitor2.xml mp500.xml sd500.xml test_utf8.sh
books.json ipod_other.xml mem.xml monitor.xml post.jar solr-word.pdf utf8-example.xml
gb18030-example.xml ipod_video.xml money.xml more_books.jsonl sample.html solr.xml vidcard.xml
Moodle, however, isn't indexing books nor manufacturers etc..
So I too am a little confused ... we're all in this together, are we not? ;)
'spirit of sharing', Ken