Warning: This page has not been updated in over over a year and may be outdated or deprecated.
legacy:installation:installing_multiple_instances
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
installing_multiple_instances [2009/11/19 17:55] – demiankatz | legacy:installation:installing_multiple_instances [2018/12/19 17:09] (current) – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Sometimes, you may want to have multiple copies of VuFind running on the same system. | + | ====== Installing Multiple Instances ====== |
- | This page contains details of how to configure your second copy to work in parallel with the first. | + | // This outdated |
- | ====== Install the Second Copy ====== | ||
- | |||
- | You can install your second copy in much the same way as the first copy, though most steps can be skipped since you already have Apache, MySQL and other prerequisites running. | ||
- | |||
- | Important notes: | ||
- | |||
- | * Be sure to install the second copy in a different directory than the first. | ||
- | * You will probably want to give the second instance a different database name to work with so it has its own separate set of tables. | ||
- | * Since the scripts to run VuFind rely on the VUFIND_HOME environment variable, you may run into problems if you have set this up as a global value. | ||
- | |||
- | ====== Configuring the Second Copy ====== | ||
- | |||
- | ===== 1. Edit / | ||
- | |||
- | * In the [Site] section, you will need to change the path, url and local settings to reflect the new location of the code. | ||
- | * In the [Index] section, change the local setting to reflect the new code location. | ||
- | * In the [Database] section, you will have to edit the scheme_location and class_location values to reflect the different file paths. | ||
- | |||
- | ===== 2. Edit / | ||
- | |||
- | You will need to make some changes to the Apache configuration for the second instance. | ||
- | |||
- | * Change the Alias line at the top of the file to reflect the base URL you want to use and the file path where you installed the code. | ||
- | * Change the Directory line right under Alias to reflect the new file path. | ||
- | * Change the RewriteBase line further down in the file to reflect the new base URL. | ||
- | * Change the AuthUserFile setting in the Administration section to reflect the new file path. | ||
- | |||
- | |||
- | ===== 3. Edit import/ | ||
- | * Change the solr.path setting to reflect your installation directory. | ||
- | |||
- | //This file may not exist in all versions of VuFind// | ||
- | |||
- | |||
- | ===== 4. Edit vufind.sh and import-marc.sh ===== | ||
- | |||
- | As noted above, best practice is probably to install each instance of VuFind in a different user account with different settings for the VUFIND_HOME environment variable. | ||
- | |||
- | However, if you chose to set up a global VUFIND_HOME value, you can override it by adding this line near the top of both vufind.sh and import-marc.sh (but under the "# | ||
- | |||
- | <code bash> | ||
- | VUFIND_HOME="/ | ||
- | </ | ||
- | |||
- | You will run into a similar problem with the JETTY_PID variable, which should be unique for each running instance of VuFind. | ||
- | |||
- | <code bash> | ||
- | JETTY_PID=" | ||
- | </ | ||
- | |||
- | //Note that in early versions of VuFind, import-marc.sh used to be called import.sh.// | ||
- | |||
- | ===== 5. Configure to Reflect the Custom MySQL Database Name ===== | ||
- | |||
- | See [[alternate mysql database name|Using an Alternate MySQL Database name]] for details on this step. | ||
- | |||
- | |||
- | ===== 6. Change the Solr Port Number ===== | ||
- | |||
- | Each instance of VuFind will need to access the Solr search back-end using a different port number. | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
legacy/installation/installing_multiple_instances.txt · Last modified: 2018/12/19 17:09 by demiankatz