This guide applies on the following platforms:
- Ubuntu 10.04 TLS +
- Debian 6.0 (Squeeze)
The SwiftRiver install process is:
- Install the required packages
- Set up a MySQL database
- Set up Solr
- Set up Tomcat
- Create the application directories
- Build and deploy
- Create the database tables
- Set up the UI Client
Install the required packages
The following software packages must be installed on your system:
- Java 1.5 or greater: preferably Java 1.6 (also known as Java 6)
- MySQL Server version 5.1 or greater
- Apache Solr
- Apache Tomcat (version 6.0 or greater) or other servlet container
- Apache HTTP server with
mod_rewrite
enabled - PHP version 5.3 or greater
- Python version 2.6 or version 2.7
- RabbitMQ version 3.0 or greater
- Sendmail or other Mail Transfer Agent
Install the API
- Download and extract the API distribution
- Stop your servlet container
- Copy the API war to your webapps directory
Copy the sample context configuration file -
config/swiftriver-api.xml
- to<TOMCAT_HOME>/conf/Catalina/localhost
and modify the default configuration parameters. The following is an example of the modified file:An explanation for each of the configuration parameters is provided below:
Parameter Description mqHost The host running the RabbitMQ server mqUser User to connect to RabbitMQ mqPassword Pasword for the user used to connect to RabbitMQ solr/serverURL URL of your Solr server solr/indexerProperties Location of the properties file for the indexer - a background process that periodically updates Solr with the new drops indexer/lastDropIDPropKey The property key that specifies the ID of the last drop to be posted to Solr. This value serves as the reference point for fetching new drops indexer/batchSizePropKey The property key that specifies the maximum no. of drops to post to Solr during each run indexer/runInterval The property key that specifies how often (in ms) the indexer should check for new drops and update Solr authSchemeName Name of the authentication scheme. The possible values are database
andcrowdmapid
crowdmapid/serverURL URL of the CrowdmapID deployment crowdmapid/apiKey API key for authenticating requests to the CrowdmapID deployment specified in crowdmapid/serverURL
crowdmapid/apiKeyParamName Name of the request parameter used to specify the api key when submitting a request to the CrowdmapID deployment mail/host Name/IP address of the mail server mail/senderAddress Email address to be used when sending out emails mail/resetPasswordUrl URL to be used when sending the password reset link. mail/activateAccountUrl URL to be used for sending the account activation link; when a new account is created.
Create the Database
Create a new database called swiftriver
Create a database user called swiftriver
and grant them all the privileges on the swiftriver
database.
Create the database tables by running the schema setup script - install/schema.sql
Configure Solr
Copy solr/solr.xml
(from the API distribution) to your SOLR_HOME
. The default solr.xml
file looks like this:
Create a directory for the swiftriver
core in SOLR_HOME
Copy the existing conf
directory to the core director we have created above
Copy solr/schema.xml
and solr/solrconfig.xml
to the conf
directory of the swiftriver core:
Configure Background Processes
Start your servlet container
2 Comments
Hide/Show CommentsGiuseppe CALAMITA
Hello, it'd be great to get the availability of a unique installation process as in any CMS like Joomla etc. that would be a cool way to quick spread the use of Swiftriver Thank you.
sgtm2000
Has anyone installed SwiftRiver in Windows or Mac (Preferably windows)? It'd be great if we can get going on either of these systems.