Warning: This page has not been updated in over over a year and may be outdated or deprecated.
installation:installing_multiple_instances
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
installation:installing_multiple_instances [2015/12/11 20:26] – [Custom Theme] demiankatz | installation:installing_multiple_instances [2020/08/07 17:47] – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Multiple Instances ====== | ====== Installing Multiple Instances ====== | ||
- | |||
- | // This page refers to VuFind 2.x; for similar notes related to earlier versions, see [[legacy: | ||
There are a few reasons you might want to have several instances of VuFind. | There are a few reasons you might want to have several instances of VuFind. | ||
Line 29: | Line 27: | ||
</ | </ | ||
- | This will prompt for the name of a new [[vufind2: | + | This will prompt for the name of a new [[configuration: |
At the end it will prompt you to create a symbolic link for your new sites httpd-vufind.conf config file in the Apache directory. E.g.: | At the end it will prompt you to create a symbolic link for your new sites httpd-vufind.conf config file in the Apache directory. E.g.: | ||
Line 86: | Line 84: | ||
===== 4 Set up a new Solr Core - if required ===== | ===== 4 Set up a new Solr Core - if required ===== | ||
- | Solr Cores hold the searchable records within | + | Solr Cores hold the searchable records within |
The most common setup, outlined here is an additional core on the existing Solr instance, though there are other options, see further down this page. | The most common setup, outlined here is an additional core on the existing Solr instance, though there are other options, see further down this page. | ||
- | * Shutdown vufind | + | * Shut down Solr (see [[administration: |
* Copy the existing core (usually biblio) under VuFind' | * Copy the existing core (usually biblio) under VuFind' | ||
cd $VUFIND_HOME/ | cd $VUFIND_HOME/ | ||
Line 96: | Line 94: | ||
</ | </ | ||
* If you don't want your new core to contain the records of the core you just copied from (e.g. biblio), go in to the new directory and delete (or move if you are cautious) the index folder < | * If you don't want your new core to contain the records of the core you just copied from (e.g. biblio), go in to the new directory and delete (or move if you are cautious) the index folder < | ||
- | * Edit solr/ | + | * If you are using an old version of VuFind (pre-3.0) you may have to edit solr/ |
- | * Edit conf/ | + | * Edit conf/ |
* edit $VUFIND_HOME/< | * edit $VUFIND_HOME/< | ||
- | * If using SolrMarc (i.e. if you will be importing MARC records in to this instance), configure import/ | + | * If using SolrMarc (i.e. if you will be importing MARC records in to this instance), configure import/ |
Important: When indexing, make sure that the VUFIND_LOCAL_DIR environment variable points to the correct configuration so that records are sent to the appropriate place. All cronjobs to import records in to different cores will need to set this variable. | Important: When indexing, make sure that the VUFIND_LOCAL_DIR environment variable points to the correct configuration so that records are sent to the appropriate place. All cronjobs to import records in to different cores will need to set this variable. | ||
Line 114: | Line 112: | ||
==== Custom Theme ==== | ==== Custom Theme ==== | ||
- | VuFind' | + | VuFind' |
===== Further information on MySQL Databases and Solr instances ===== | ===== Further information on MySQL Databases and Solr instances ===== | ||
==== Sharing (or not sharing) a MySQL Database ==== | ==== Sharing (or not sharing) a MySQL Database ==== | ||
- | If you simply create a new instance with install.php and the web-based install script, VuFind will attempt to create a separate MySQL database for each instance. | + | If you simply create a new instance with install.php and the web-based install script, VuFind will attempt to create a separate MySQL database for each instance. |
==== Using Multiple Solr Instances : Create a New Solr Instance ==== | ==== Using Multiple Solr Instances : Create a New Solr Instance ==== | ||
Line 125: | Line 123: | ||
The steps above setup a new Solr core in an existing Solr instance, which will probably be suitable for most systems. However another option is to create a New Solr Instance: | The steps above setup a new Solr core in an existing Solr instance, which will probably be suitable for most systems. However another option is to create a New Solr Instance: | ||
- | Creating a new core usually makes more sense than creating a copy of Solr, but if your index is too large to fit on a single server, you could also copy VuFind' | + | Creating a new core usually makes more sense than creating a copy of Solr, but if your index is too large to fit on a single server, you could also copy VuFind' |
- | + | ||
- | It probably does not make sense to try to run two separate instances of Solr on a single server, but if you have a good reason to do this, refer to the old [[legacy: | + | |
===== Example shell transcript of setting up a new instance ===== | ===== Example shell transcript of setting up a new instance ===== | ||
The following example creates a new instance called springfield, | The following example creates a new instance called springfield, | ||
Line 215: | Line 210: | ||
libadmin@vufindserver:/ | libadmin@vufindserver:/ | ||
</ | </ | ||
+ | |||
+ | ===== Additional Resources ===== | ||
+ | |||
+ | * [[installation: | ||
---- struct data ---- | ---- struct data ---- | ||
---- | ---- | ||
installation/installing_multiple_instances.txt · Last modified: 2023/11/28 20:25 by demiankatz