How to install Solr 6.x with Drupal 8

This is basic how to setup & configure Solr 6.x with multicore with Drupal 8, this guide is for Ubuntu 16. I suppose that you have java 8 installed


1. Install requirments packages

sudo apt-get update && apt-get upgrade -y

[email protected]:~# sudo apt-get install python-software-properties


2. Install Solr 6.x

cd /tmp


tar xzf solr-6.0.1.tgz solr-6.0.1/bin/ --strip-components=2


sudo ./ solr-6.0.1.tgz

[email protected]:/tmp# sudo ./ solr-6.0.1.tgz

service solr status


3. Create Solr collection named d8

[email protected]:/tmp# sudo su - solr -c "/opt/solr/bin/solr create -c d7 -n d8_data"

4. Copy conf from search_api_solr to d8_data/conf


rsync -arvz  modules/search_api_solr/solr-conf/6.x/ /var/solr/data/d8/conf/

/etc/init.d/solr restart

Then access

I will create ansible-playbook to automate this process later, thanks for reading. Reach me at

Big thanks to this blog author

Latest blog

Web Analytics