Hi Mika,

if you want to set up mulitple instances on one machine using the same 
source directory and dspace user you got to:

- In this example all elements of the new installation are named dspace2
- It assumes that the dspace user is called dspace
- [dspace-source] is the directory where you got your dspace source
- [tomcat] is the installation directory of tomcat


1. create a new database
createdb –U dspace dspace2

2. create a new installation directory
mkdir /dspace2
chown dspace /dspace2

2. copy the dspace.cfg
cd [dspace-source]/config
cp dspace.cfg dspace2.cfg

3. edit dspace2.cfg
set
dspace.dir = /dspace2
dspace.url = http://[YourURL]:8080/dspace2
db.url = jdbc:postgresql://localhost:5432/dspace2

4. do the fresh installation
cd [dspace-source]
ant clean
ant -Dconfig=config/dspace2.cfg fresh_install

5. deploy
cp build/dspace.war [tomcat]/webapps/dspace2.war

6. restart tomcat

7. create the Administrator
/dspace2/bin/create-administrator

hope that helps

Claudia Jürgen









Mika Stenberg schrieb:
> Im hoping to use two Dspace instances on same DB. I understood this 
> could be possible simply by configuring them to use DBs with different 
> names.
> 
> Next to my working Dspace installation I created another instance by 
> copying the source files, editing dspace.cfg to point to another DB, 
> changed the userid and pass and building the source. However, when I 
> deploy the war DSpace displays the content from my original dspace db, 
> not from the one Im telling it to.
> 
> So my question is, where is Dspace reading the DB info other than 
> dspace.cfg? How could I implement this parallel setup accordingly?
> 
> Thanks,
> Mika
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to