GISolve Install

Download

gisolve.tar.gz FIXME - Add link

1.

yum install httpd httpd-devel mod_ssl
cd ${DIR}
tar xzf gisolve.tar.gz
cd gisolve

2. jdk

./jdk-1_5_0_11-linux-i586-rpm.bin
rpm -ivh ./jdk-1_5_0_11-linux-i586.rpm

3. tomcat

useradd tomcat
tar xzf apache-tomcat-5.5.20.tar.gz
cp -a apache-tomcat-5.5.20 /grow/apps-local/tomcat
chown tomcat:tomcat -R /grow/apps-local/tomcat

4. tomcat connectors setup

tar xzf tomcat-connectors-1.2.21-src.tar.gz
cd tomcat-connectors-1.2.21-src/native
./configure --with-apxs=/usr/sbin/apxs --with-tomcat=/grow/apps-local/tomcat/ --with-java-home=/usr/java/jdk1.5.0_11 --with-jni
make
make install

5. jk.conf file

vi /etc/httpd/conf.d/jk.conf
# Load mod_jk module
# Update this path to match your modules location
LoadModule    jk_module  /usr/lib64/httpd/modules/mod_jk.so
# Declare the module for <IfModule directive> (remove this line on Apache 2.x)
#AddModule     mod_jk.c
# Where to find workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk logs
JkLogFile     /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel    info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat     "%w %V %T"
# Send everything for context /examples to worker named worker1 (ajp13)
#JkMount  /examples/* worker1

JkMount /gisolveportlets/* worker1
JkMount /gisolve/* worker1
JkMount /gisolve  worker1
JkMount /gridsphere/* worker1
JkMount /gridsphere  worker1
#JkMount /*  worker1

6. workers.properties file

vi /etc/httpd/conf/workers.properties
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.recycle_timeout=300

7. apache ant

tar xzf apache-ant-1.7.0-bin.tar.gz
cp -a apache-ant-1.7.0/ /grow/apps-local/apache-ant


7. gisolve init script
<code>
touch /etc/init.d/gisolve
chmod 755 /etc/init.d/gisolve
vi /etc/init.d/gisolve
#!/bin/sh
#
# gisolve           This script will start and stop the GISolve portal
#
# chkconfig: 345 81 19
# description: Startup script for Tomcat

#JAVA_HOME=/usr/java/jdk1.5.0_11
#export JAVA_HOME

. /home/tomcat/gisolve-env.sh
# make sure user tomcat can write logs to current dir
if [ ! -d "/home/tomcat/log" ]; then
  su tomcat /bin/bash -c "mkdir -p /home/tomcat/log"
fi
cd /home/tomcat/log

start_tomcat="/grow/apps-local/tomcat/bin/catalina.sh start"
stop_tomcat="/grow/apps-local/tomcat/bin/catalina.sh stop"

start() {
        echo -n "Starting GISolve Portal: "
        /usr/bin/su tomcat ${start_tomcat}
        echo "done."
}
stop() {
        echo -n "Shutting down GISolve Portal: "
        /usr/bin/su tomcat ${stop_tomcat}
        echo "done."
}

# See how we were called
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        sleep 10
        start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
esac

exit 0

8. gisolve environment

touch /home/tomcat/gisolve-env.sh
chmod 755 /home/tomcat/gisolve-env.sh
vi /home/tomcat/gisolve-env.sh
# JAVA environment
export JAVA_HOME=/usr/java/jdk1.5.0_11
export ANT_HOME=/grow/apps-local/apache-ant
export CATALINA_HOME=/grow/apps-local/tomcat
export APPSERVER_HOME=${CATALINA_HOME}
export PATH=${JAVA_HOME}/bin:${ANT_HOME}/bin:$PATH

# increase memory for production use
#export JAVA_OPTS="-Xmx512m"
export JAVA_OPTS="-Xmx1536m"

9. firewall

vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 443 -j ACCEPT

10. httpd

vi /etc/httpd/conf/httpd.conf
NameVirtualHost *:80
<VirtualHost *:80>
RedirectMatch permanent (/.*) https://grow-gisolve.its.uiowa.edu$1
</VirtualHost>

startup

/etc/init.d/iptables restart
/etc/init.d/httpd restart
/etc/init.d/gisolve start