Hi all

It can be done as Thomas say, but is not recommendedin production systems.
Any problems that hang tomcat will prevent access to all applications it
contains, and maintenance is more complicated, stops will halt all
applications and start and stop times will be higher.

regards

Hi Thomas,

You can run multiple DSpace's on one server. Are you using Tomcat as a
web server?

We did this previously on our server by installing the different
DSpaces in different directories, with different assetstores and
different database schema names. We then configured tomcat to run more
than one web application with different hostnames. You do this within
the tomcat/conf/server.xml to point to different directories on the
server. With a context path for each web app within the individual
DSpace. We used apache to forward all requests on port 80 to 8080 e.g.


<Host name="www.testdspace1.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using
pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
               prefix="localhost_dspace1_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

         <Context path="/solr"
docBase="/Users/dspace/dspace1/webapps/solr" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/"
docBase="/Users/dspace/dspace1/webapps/jspui" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/sword"
docBase="/Users/dspace/dspace1/webapps/sword" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
</Host>

<Host name="www.testdspace2.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using
pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
               prefix="localhost_dspace2_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

        <Context path="/solr"
docBase="/Users/dspace/dspace2/webapps/solr" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/"
docBase="/Users/dspace/dspace2/webapps/jspui" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/sword"
docBase="/Users/dspace/dspace2/webapps/sword" reloadable="true"
cachingAllowed="false" allowLinking="true"/>

</Host>

Or if you just want to do this in a local dev environment you can have
lots of contexts under localhost (this is what I do on my dev pc) e.g.

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

<Context path="/dspace1/solr"
docBase="/Users/dspace/dspace1/webapps/solr" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/dspace1"
docBase="/Users/dspace/dspace1/webapps/jspui" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/dspace1/sword"
docBase="/Users/dspace/dspace1/webapps/sword" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/dspace2/solr"
docBase="/Users/dspace/dspace2/webapps/solr" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/dspace2"
docBase="/Users/dspace/dspace2/webapps/jspui" reloadable="true"
cachingAllowed="false" allowLinking="true"/>
        <Context path="/dspace2/sword"
docBase="/Users/dspace/dspace2/webapps/sword" reloadable="true"
cachingAllowed="false" allowLinking="true"/>

</Host>


You can then see the Dspace on http://localhost:8080/dspace1 You may
need to increase the startup parameters for Tomcat if it starts
running out of memory. Tomcat can also get slow to start-up if you
have a lot of webapps.

Cheers,

Claire

--
Claire Knowles
Library Digital Development Manager
Library and University Collections, Information Services
University of Edinburgh



From: <Avino>, "Thomas W. [LITES] (LARC-B702)"
<[email protected] <mailto:[email protected]>>
Date: Wednesday, 8 October 2014 13:01
To: dspace-tech <[email protected]
<mailto:[email protected]>>
Subject: [Dspace-tech] Running 2 different Dspace instances on 1 server

Is it possible to create a new Dspace instance onto an existing
server?  This would be a completely different Dspace application, not
just a copy.

We have 5 different Dspace library applications running and I don't
want to setup a new machine.  I have a development box, and I want to
install 2 different Dspace's.  Is this possible, and how?

Thank you!

Thomas W. Avino

http://t3.gstatic.com/images?q=tbn:ANd9GcRnrGOajbLG51OH18dELWjFdU65XUjF7Rb1nhkW034bbGRqm9BoQU4IlnV-**

*NASA Langley Research Center*

Bldg 1194 Room 302B

Mail Stop 185

Hampton, VA 23681-2199

Phone: (757) 864-8495

Fax: (757) 864-6649



The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--



---
Este mensaje no contiene virus ni malware porque la protección de avast! 
Antivirus está activa.
http://www.avast.com
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to