Hello,

Our Dspace knowledge walked out the door in November, and now I have been asked
to create more instances for our Dspace customer.

The platform -

Sun SPARC v245
Solaris 10, zone/container
Apache2 v2.2.4, mod_jk
Postgresql 8.2.3
Dspace 1.4.2
Tomcat 6.0.13

First of all, I see most of the documentation just assumes Linux.  Is anyone
else using Solaris?  Anyone doing it inside a zone?  The product seems to have
been working fine as a single instance to date.

I followed the guidelines listed at
http://wiki.dspace.org/index.php/MultipleDspaceOneServer.  Nothing in there
seems to indicate that you have to alter your Apache configuration (virtual
host) or your Tomcat configuration except for placing your WAR files in the
'webapps' directory.

The client wishes to have a production instance at http://dspace.nt.gov.au, one
at http://dspacetest.nt.gov.au, and one at http://dspacedev.nt.gov.au.  The
first one seems to work, but the others give an internal configuration error;
however, if I write out http://dspace.nt.gov.au/dspacetest, I get the right
results.  I suspect the problem may be due to the virtual host configuration.
Should it be possible that I can go straight to Dspace with the three URLs
listed, or will it only run as http://hostname/dspace,
http://hostname/dspacetest, etc.?  The location of each is /usr/local/dspace,
/usr/local/dspacetest, and /usr/local/dspacedev.  I'm not even sure how it is
finding the 'document root' for Dspace to beging with.  Below is the virtual
host configuration for the dspacetest instance (we separate our virtual host
settings into separate include files from httpd.conf).  I suspect the problem
may be stemming from the JkMount configuration:

#Include etc/vhosts.d/dspacetest.acl
## The worker file
JkWorkersFile /opt/csw/apache2/etc/dspacetest.properties

## Where to put jk shared memory
JkShmFile /opt/csw/apache2/var/mod_jk.shm

JkLogFile     /opt/csw/apache2/var/log/mod_jk.log

<VirtualHost *:80>
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /opt/csw/apache2/share/htdocs
        ServerName dspacetest.nt.gov.au
        ServerAlias www.dspacetest.nt.gov.au dspacetest
        ErrorLog /usr/local/dspacetest/log/apache-error_log
        CustomLog /usr/local/dspacetest/log/apache-access_log common

        RewriteEngine On
        ProxyRequests Off
#       RewriteRule ^/manakin/(.*) http://localhost:8080/manakin/$1 [P]
#       RewriteRule ^/(.*) http://localhost:8080/manakin/$1 [P]

        JkMount  /* dspacetest

#       RewriteRule ^/$ /manakin/ [R]

#       JkMount  /dspace/* dspace
#       RewriteRule ^/dspace$ /dspace/ [R]

#       JkMount  /dspace-oai/* dspace
#       RewriteRule ^/dspace-oai$ /dspace-oai/ [R]

#       JkMount /manakin/* manakin
#       JkMount /* manakin
#       RewriteRule ^/manakin$ /manakin/ [R]
#       JkLogLevel    info
#       JkLogFile     /opt/csw/apache2/var/log/mod_jk.log
        # Select the timestamp log format
#       JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

</VirtualHost>
...

This is basically a copy of the dspace.conf virtual host file where 'dspace' has
been changed to 'dspacetest'; otherwise, this is what was configured by the
previous admin.  I created the dspacetest.properties file which is for the
workers, but my mod_jk log says that it can't find a worker for 'dspacetest'.

It would be great if anyone can help me out on this issue.

I also have a separate but related question.  Each instance is owned by the user
'dspace', and there is currently only one init script being used to start
Dspace.  I have not added anything for the new instances and I don't know what
should be added, if anything.  Is it possible to make an init script that only
starts/stops each instance as requested by my client?

Here is the init script:

#!/bin/bash
#
# Startup script for the dspace server
#
# description: the dspace system includes tomcat and handle server
# /etc/init.d/dspace Created 13 March 2007 by nha

HOME="/usr/local/dspace"
ANT_HOME="/usr/local/dspace/ant"
JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
JAVA_HOME="/usr/local/dspace/jdk1.6.0_02"
CATALINA_HOME="/usr/local/dspace/tomcat"

export ANT_HOME JAVA_OPTS JAVA_HOME CATALINA_HOME HOME

PATH="${ANT_HOME}/bin:${JAVA_HOME}/jre/bin:/opt/csw/bin:${PATH}"
export PATH

# dspace user ID
dspace=dspace

cd $HOME

case "$1" in
"start")
        # should check here to be sure postgresql is running
        # and probably httpd as well...
        su dspace -c "$CATALINA_HOME/bin/startup.sh"
        su dspace -c "/usr/local/dspace/bin/start-handle-server"
        ;;

"stop")
        su dspace $CATALINA_HOME/bin/shutdown.sh
        sleep 2
        pkill -KILL -u $dspace java 2>/dev/null
        pkill -9 -u $dspace java
        ;;

"restart")
        $0 stop
        wait
        $0 start
        ;;

*)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac
...

Thanks for any help.

Regards,

Alan Rubin
Technician Unix
DCS Midrange Services
Phone: +61 (08) 8999 6814
Fax:      +61 (08) 8999 7493
e-Mail: [EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to