Step 5 of 10 Installing schema & solrconfig files

Last updated on
30 April 2025

We are now going to install schema & solrconfig files on the first remote Ubuntu Server.

On the first remote Ubuntu server navigate to the following folder.

apache-solr-1.4.0/example/solr/conf/

Rename schema.xml file.
File name before

schema.xml

File name after

schema.bak

In the same folder. Rename solrconfig.xml file.
File name before

solrconfig.xml

File name after

solrconfig.bak

Copy the two files (schema.xml & solrconfig.xml) that come with the Drupal Apache Solr Search Integration module to the following directory on your first remote Ubuntu server.

apache-solr-1.4.0/example/solr/conf/

We are now going to start the Solr engine on your first remote Ubuntu server.
Type in the following commands in TERMINAL. Press RETURN key after each line.

cd /
cd apache-solr-1.4.0/example
java -jar start.jar

Wait. If successful TERMINAL will returns a long list of lines.

We are now going to test if the Solr engine is now available.
Using your internet browser go to http://10.1.2.3:8983/solr/admin/

  • Note: You must replace above 10.1.2.3 by your second Ubuntu remote server IP address.

If successful you should see a page with a grey background titled “Solr Admin (drupal-0.9.2)”.

You have successfully installed schema & solrconfig files on the first remote Ubuntu Server.

  • Note 1: This is optional but if you want to make your life easier you can automatically start Apache Server on server restarts. Read more at http://drupal.org/node/507292
  • Note 2: To properly manually start the Solr engine on your first remote Ubuntu server (i.e. so you can log out and not kill solr), you need to run Solr in the background. You can achieve that with this command:
    nohup java -jar start.jar >logfile 2>&1 &;
    

    This outputs a process number to the terminal; you should store it for future reference so you can later kill that process.

    As an alternative, install tomcat5.5 as the servlet container.

Help improve this page

Page status: Not set

You can: