Difference between revisions of "SUNScholar/Install DSpace/S04/5.X"
Jump to navigation
Jump to search
m |
m (→Example) |
||
| Line 51: | Line 51: | ||
# "dspace.dir" setting in the final "dspace.cfg" file. It can be | # "dspace.dir" setting in the final "dspace.cfg" file. It can be | ||
# modified later on in your "dspace.cfg", if needed. | # modified later on in your "dspace.cfg", if needed. | ||
| − | + | dspace.install.dir=/dspace | |
| − | dspace.install.dir = | ||
# DSpace host name - should match base URL. Do not include port number | # DSpace host name - should match base URL. Do not include port number | ||
| − | dspace.hostname = | + | dspace.hostname = localhost |
# DSpace base host URL. Include port number etc. | # DSpace base host URL. Include port number etc. | ||
| − | dspace.baseUrl = | + | dspace.baseUrl = http://localhost:8080 |
| + | |||
| + | # The user interface you will be using for DSpace. Common usage is either xmlui or jspui | ||
| + | dspace.ui = xmlui | ||
| + | |||
| + | # Full link your end users will use to access DSpace. In most cases, this will be the baseurl followed by | ||
| + | # the context path to the UI you are using. | ||
| + | # | ||
| + | # Alternatively, you can use a url redirect or deploy the web application under the servlet container root. | ||
| + | # In this case, make sure to remove the /${dspace.ui} from the dspace.url property. | ||
| + | dspace.url = ${dspace.baseUrl}/${dspace.ui} | ||
# Name of the site | # Name of the site | ||
| − | dspace.name = | + | dspace.name = DSpace at My University |
# Solr server | # Solr server | ||
| − | solr.server = http:// | + | solr.server=http://localhost:8080/solr |
# Default language for metadata values | # Default language for metadata values | ||
| − | default.language = | + | default.language = en_US |
########################## | ########################## | ||
# DATABASE CONFIGURATION # | # DATABASE CONFIGURATION # | ||
########################## | ########################## | ||
| − | |||
| − | |||
| − | |||
# Uncomment the appropriate block below for your database. | # Uncomment the appropriate block below for your database. | ||
| Line 80: | Line 86: | ||
db.driver=org.postgresql.Driver | db.driver=org.postgresql.Driver | ||
db.url=jdbc:postgresql://localhost:5432/dspace | db.url=jdbc:postgresql://localhost:5432/dspace | ||
| − | db.username= | + | db.username=dspace |
| − | db.password= | + | db.password=dspace |
# oracle | # oracle | ||
| Line 89: | Line 95: | ||
#db.password=dspace | #db.password=dspace | ||
| − | # Schema name - if your database contains multiple schemas, you can avoid problems with | + | # Schema name - if your database contains multiple schemas, you can avoid |
| − | + | # problems with retrieving the definitions of duplicate object names by | |
| − | # the schema name | + | # specifying the schema name that is used for DSpace. |
| + | # ORACLE USAGE NOTE: In Oracle, schema is equivalent to "username". This means | ||
| + | # specifying a "db.schema" is often unnecessary (i.e. you can leave it blank), | ||
| + | # UNLESS your Oracle DB Account (in db.username) has access to multiple schemas. | ||
db.schema = | db.schema = | ||
# Maximum number of DB connections in pool | # Maximum number of DB connections in pool | ||
| − | db.maxconnections = | + | db.maxconnections = 30 |
# Maximum time to wait before giving up if all connections in pool are busy (milliseconds) | # Maximum time to wait before giving up if all connections in pool are busy (milliseconds) | ||
| Line 101: | Line 110: | ||
# Maximum number of idle connections in pool (-1 = unlimited) | # Maximum number of idle connections in pool (-1 = unlimited) | ||
| − | db.maxidle = | + | db.maxidle = -1 |
# Determine if prepared statement should be cached. (default is true) | # Determine if prepared statement should be cached. (default is true) | ||
| Line 115: | Line 124: | ||
# SMTP mail server | # SMTP mail server | ||
| − | mail.server = | + | mail.server = smtp.example.com |
# SMTP mail server authentication username and password (if required) | # SMTP mail server authentication username and password (if required) | ||
| Line 127: | Line 136: | ||
# From address for mail | # From address for mail | ||
| − | mail.from.address = | + | mail.from.address = dspace-noreply@myu.edu |
# Currently limited to one recipient! | # Currently limited to one recipient! | ||
| − | mail.feedback.recipient = | + | mail.feedback.recipient = dspace-help@myu.edu |
# General site administration (Webmaster) e-mail | # General site administration (Webmaster) e-mail | ||
| − | mail.admin = | + | mail.admin = dspace-help@myu.edu |
# Recipient for server errors and alerts | # Recipient for server errors and alerts | ||
#mail.alert.recipient = email-address-here | #mail.alert.recipient = email-address-here | ||
| − | mail.alert.recipient = | + | mail.alert.recipient= |
# Recipient for new user registration emails | # Recipient for new user registration emails | ||
#mail.registration.notify = email-address-here | #mail.registration.notify = email-address-here | ||
| − | mail.registration.notify = | + | mail.registration.notify= |
| Line 168: | Line 177: | ||
# CNRI Handle prefix | # CNRI Handle prefix | ||
| − | handle.prefix = | + | handle.prefix = 123456789 |
####################### | ####################### | ||
| Line 175: | Line 184: | ||
# uncomment and specify both properties if proxy server required | # uncomment and specify both properties if proxy server required | ||
# proxy server for external http requests - use regular hostname without port number | # proxy server for external http requests - use regular hostname without port number | ||
| − | http.proxy.host = | + | http.proxy.host = |
# port number of proxy server | # port number of proxy server | ||
| − | http.proxy.port = | + | http.proxy.port = |
##################### | ##################### | ||
# LOGLEVEL SETTINGS # | # LOGLEVEL SETTINGS # | ||
##################### | ##################### | ||
| − | loglevel.other = | + | loglevel.other = INFO |
# loglevel.other: Log level for other third-party tools/APIs used by DSpace | # loglevel.other: Log level for other third-party tools/APIs used by DSpace | ||
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL | # Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL | ||
| − | loglevel.dspace = | + | loglevel.dspace = INFO |
# loglevel.dspace: Log level for all DSpace-specific code (org.dspace.*) | # loglevel.dspace: Log level for all DSpace-specific code (org.dspace.*) | ||
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL | # Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL | ||
Revision as of 15:00, 16 April 2015
Back to Step 4
Contents
Requirements
- http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S03
- http://wiki.lib.sun.ac.za/index.php/SUNScholar/Upgrading/DSpace/Release_Notes/4.X
Procedure
With the release of DSpace versions => 3.X, a new way of configuring DSpace was introduced.
The critical core elements of the old "dspace.cfg" file have been superseded by a "build.properties" file.
The idea is to put all the custom configs in the "config" folder and use the build.properties file for the core "building" of DSpace.
To edit the build.properties file, type the following:
nano $HOME/source/build.properties
Example
Replace all the places with a pair of percent signs (%something%), with the settings for your system.
- Be careful to NOT comment out any settings, leave them as they are with blanks!!
- Check the 1.8.2 config help for important comments about critical settings.
- Make sure the installation directory is correctly specified, it should be "dspace.install.dir = $HOME"
# DSpace build.properties
# This file should be customised to suit your build environment.
# Note that not all configuration is handled here, only the most common
# properties that tend to differ between build environments.
# For adjusting global settings or more complex settings, edit the relevant config file.
#
# IMPORTANT: Do not remove or comment out settings in build.properties
# When you edit the "build.properties" file (or a custom *.properties file),
# take care not to remove or comment out any settings. Doing so, may cause
# your final "dspace.cfg" file to be misconfigured with regards to that
# particular setting. Instead, if you wish to remove/disable a particular
# setting, just clear out its value. For example, if you don't want to be
# notified of new user registrations, ensure the "mail.registration.notify"
# setting has no value, e.g. "mail.registration.notify="
#
##########################
# SERVER CONFIGURATION #
##########################
# DSpace installation directory. This is the location where you want
# to install DSpace. NOTE: this value will be copied over to the
# "dspace.dir" setting in the final "dspace.cfg" file. It can be
# modified later on in your "dspace.cfg", if needed.
dspace.install.dir=/dspace
# DSpace host name - should match base URL. Do not include port number
dspace.hostname = localhost
# DSpace base host URL. Include port number etc.
dspace.baseUrl = http://localhost:8080
# The user interface you will be using for DSpace. Common usage is either xmlui or jspui
dspace.ui = xmlui
# Full link your end users will use to access DSpace. In most cases, this will be the baseurl followed by
# the context path to the UI you are using.
#
# Alternatively, you can use a url redirect or deploy the web application under the servlet container root.
# In this case, make sure to remove the /${dspace.ui} from the dspace.url property.
dspace.url = ${dspace.baseUrl}/${dspace.ui}
# Name of the site
dspace.name = DSpace at My University
# Solr server
solr.server=http://localhost:8080/solr
# Default language for metadata values
default.language = en_US
##########################
# DATABASE CONFIGURATION #
##########################
# Uncomment the appropriate block below for your database.
# postgres
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/dspace
db.username=dspace
db.password=dspace
# oracle
#db.driver= oracle.jdbc.OracleDriver
#db.url=jdbc:oracle:thin:@//localhost:1521/xe
#db.username=dspace
#db.password=dspace
# Schema name - if your database contains multiple schemas, you can avoid
# problems with retrieving the definitions of duplicate object names by
# specifying the schema name that is used for DSpace.
# ORACLE USAGE NOTE: In Oracle, schema is equivalent to "username". This means
# specifying a "db.schema" is often unnecessary (i.e. you can leave it blank),
# UNLESS your Oracle DB Account (in db.username) has access to multiple schemas.
db.schema =
# Maximum number of DB connections in pool
db.maxconnections = 30
# Maximum time to wait before giving up if all connections in pool are busy (milliseconds)
db.maxwait = 5000
# Maximum number of idle connections in pool (-1 = unlimited)
db.maxidle = -1
# Determine if prepared statement should be cached. (default is true)
db.statementpool = true
# Specify a name for the connection pool (useful if you have multiple applications sharing Tomcat's dbcp)
# If not specified, defaults to 'dspacepool'
db.poolname = dspacepool
#######################
# EMAIL CONFIGURATION #
#######################
# SMTP mail server
mail.server = smtp.example.com
# SMTP mail server authentication username and password (if required)
# mail.server.username = myusername
# mail.server.password = mypassword
mail.server.username=
mail.server.password=
# SMTP mail server alternate port (defaults to 25)
mail.server.port = 25
# From address for mail
mail.from.address = dspace-noreply@myu.edu
# Currently limited to one recipient!
mail.feedback.recipient = dspace-help@myu.edu
# General site administration (Webmaster) e-mail
mail.admin = dspace-help@myu.edu
# Recipient for server errors and alerts
#mail.alert.recipient = email-address-here
mail.alert.recipient=
# Recipient for new user registration emails
#mail.registration.notify = email-address-here
mail.registration.notify=
########################
# HANDLE CONFIGURATION #
########################
# Canonical Handle URL prefix
#
# By default, DSpace is configured to use http://hdl.handle.net/
# as the canonical URL prefix when generating dc.identifier.uri
# during submission, and in the 'identifier' displayed in JSPUI
# item record pages.
#
# If you do not subscribe to CNRI's handle service, you can change this
# to match the persistent URL service you use, or you can force DSpace
# to use your site's URL, eg.
#handle.canonical.prefix = ${dspace.url}/handle/
#
# Note that this will not alter dc.identifer.uri metadata for existing
# items (only for subsequent submissions), but it will alter the URL
# in JSPUI's 'identifier' message on item record pages for existing items.
#
# If omitted, the canonical URL prefix will be http://hdl.handle.net/
handle.canonical.prefix = http://hdl.handle.net/
# CNRI Handle prefix
handle.prefix = 123456789
#######################
# PROXY CONFIGURATION #
#######################
# uncomment and specify both properties if proxy server required
# proxy server for external http requests - use regular hostname without port number
http.proxy.host =
# port number of proxy server
http.proxy.port =
#####################
# LOGLEVEL SETTINGS #
#####################
loglevel.other = INFO
# loglevel.other: Log level for other third-party tools/APIs used by DSpace
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
loglevel.dspace = INFO
# loglevel.dspace: Log level for all DSpace-specific code (org.dspace.*)
# Possible values (from most to least info): DEBUG, INFO, WARN, ERROR, FATAL
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)