...
- Install Sun's Java JDK (make sure you install the "JDK" not the "JRE").
- Download and install Apache Tomcat -- we recommend 6.0.20. Read the directions for help.
- Download and install MySQL.
- Download the websurveytoolbox.war file and copy it into Apache Tomcat's "webapps" folder.
- Add memory to Apache Tomcat's default configuration:
- In Linux: In the directory you installed Apache Tomcat, look for bin/catalina.sh
As the second line, add JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=512m -Xmx1000m"
This will prevent the system from running out of memory. - TODO This needs to be done in Windows, but we don't have the exact commands.
- In Linux: In the directory you installed Apache Tomcat, look for bin/catalina.sh
- 'll need to install the R Project.
- Install R and JGR:
- On Ubuntu, read how to install on Ubuntu-- in these directions, you can probably ignore the first few directions and skip straight to "apt get ..."
- Edit your tomcat launch file. You'll have to set the "R_HOME" environment variable to where your R home directory is:
- In Linux:
- Find your R_HOME location -- probably something like /usr/lib/R or /usr/lib64/R.
- Edit catalina.sh and add this after the first line: "export R_HOME=/path/to/your/R/installation"
- In Linux:
- Edit your tomcat launch file.
- In Linux, edit apache tomcat/bin/catalina.sh and add to your JAVA_OPTS line at the end before the quote: -Djava.library.path=/path/to/jri/installation
- If that doesn't work, browse to http://localhost:8080 and you should see this image. If you don't, your Apache Tomcat setup is not configured correctly.
- Set up your database. You may enter the database name as "websurveytoolbox" for example, but it's your choice.
- After clicking "Initialize", you may get a bizarre error message. This is a known bug. Just visit the home page again: http://localhost:8080/websurveytoolbox
...