Difference between revisions of "SUNScholar/Install DSpace/S03"

From Libopedia
Jump to navigation Jump to search
Line 1: Line 1:
==Step 4. *** Edit the DSpace configuration ***==
+
==Step 3. Unpack DSpace==
Type the following to edit the Dspace (dspace.cfg) config file:
+
Type the following to extract the source code.
 +
tar -xzvf /home/dspace/dspace-1.7.2-src-release.tar.gz
 +
Give user "tomcat6" full read and write permissions to the dspace user home folder.
 +
sudo chown dspace.tomcat6 -R /home/dspace
  
  nano /home/dspace/dspace-1.7.2-src-release/dspace/config/dspace.cfg
+
  sudo chmod 0777 -R /home/dspace
  
Replace all the places with a pair of percent signs (%something%) with the settings for your system.
 
 
<pre>
 
dspace.dir = /home/dspace
 
dspace.url = http://%hostname%
 
dspace.baseUrl = http://%hostname%
 
dspace.hostname = %hostname%
 
dspace.name = %DSpace for My University%
 
db.name = postgres
 
db.url = jdbc:postgresql://localhost:5432/dspace
 
db.driver = org.postgresql.Driver
 
db.username = dspace
 
db.password = %db_user_password%
 
mail.server = %my_university_mail_server_address%
 
mail.from.address = %my_email_address%
 
feedback.recipient = %my_email_address%
 
mail.admin = %my_email_address%
 
alert.recipient = %my_email_address%
 
registration.notify = %my_email_address%
 
default.language = en_ZA
 
</pre>
 
==Example config setup==
 
*%hostname% = scholar.sun.ac.za
 
*%DSpace for My University% = Stellenbosch University Research Repository
 
* %db_user_password% = my very secret PostgreSQL DB password
 
*%my_university_mail_server_address% = mail.sun.ac.za
 
*%my_email_address% = scholar@sun.ac.za
 
  
 
  '''[[SUNScholar/Install Dspace/S04|Proceed to the next step]]'''
 
  '''[[SUNScholar/Install Dspace/S04|Proceed to the next step]]'''

Revision as of 11:14, 3 August 2012

Step 3. Unpack DSpace

Type the following to extract the source code.

tar -xzvf /home/dspace/dspace-1.7.2-src-release.tar.gz

Give user "tomcat6" full read and write permissions to the dspace user home folder.

sudo chown dspace.tomcat6 -R /home/dspace
sudo chmod 0777 -R /home/dspace


Proceed to the next step