UNIX-like OS or Microsoft Windows- UNIX-like operating system (Linux, HP/UX, Mac OSX, etc.) : Many distributions of Linux/Unix come with some of the dependencies below pre-installed or easily installed via updates. You should consult your particular distribution's documentation or local system administrators to determine what is already available.
- Microsoft Windows: While DSpace can be run on Windows servers, most institutions tend to run it on a UNIX-like operating system.
Java JDK 17 (OpenJDK or Oracle JDK)| Info |
|---|
| title | Make sure to install the JDK and not just the JRE |
|---|
| DSpace requires the full JDK (Java Development Kit) be installed, rather than just the JRE (Java Runtime Environment). So, please be sure that you are installing the full JDK and not just the JRE. |
| Note |
|---|
| title | Prior versions of Java are not supported |
|---|
| Older versions of Java are unsupported. This includes JDK v11-v16. You MUST be running JDK v17. We highly recommend running only Java LTS (Long Term Support) releases in Production, as non-LTS releases may not receive ongoing security fixes. As of this DSpace release, JDK 17 and JDK 21 are the two most recent Java LTS releases. As soon as the next Java LTS release is available, we will analyze it for compatibility with this release of DSpace. For more information on Java releases, see the Java roadmaps for Oracle and/or OpenJDK. |
| Info |
|---|
We recommend using the most recent version of Maven that you can, as newer releases may include performance improvements and security updates. We recommend avoiding any that are "end of life" per https://maven.apache.org/docs/history.html |
Maven is necessary in the first stage of the build process to assemble the installation package for your DSpace instance. It gives you the flexibility to customize DSpace using the existing Maven projects found in the [dspace-source]/dspace/modules directory or by adding in your own Maven project to build the installation package for DSpace, and apply any custom interface "overlay" changes. Maven can be downloaded from http://maven.apache.org/download.html It is also provided via many operating system package managers. Configuring a Maven ProxyYou can configure a proxy to use for some or all of your HTTP requests in Maven. The username and password are only required if your proxy requires basic authentication (note that later releases may support storing your passwords in a secured keystore‚ in the meantime, please ensure your settings.xml file (usually ${user.home}/.m2/settings.xml) is secured with permissions appropriate for your operating system). Example: | Code Block |
|---|
<settings>
.
.
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
</proxies>
.
.
</settings> |
Apache Ant is required for the second stage of the build process (deploying/installing the application). First, Maven is used to construct the installer ([dspace-source]/dspace/target/dspace-installer), after which Ant is used to install/deploy DSpace to the installation directory.
Ant can be downloaded from the following location: http://ant.apache.org It is also provided via many operating system package managers. Relational Database (PostgreSQL)PostgreSQL 14.x, 15.x, 16.x or 17.x (with pgcrypto installed)- PostgreSQL can be downloaded from http://www.postgresql.org/. It is also provided via many operating system package managers.
- Make sure to select a version of PostgreSQL that is still under support from the PostgreSQL team.
- If the version of Postgres provided by your package manager is outdated, you may wish to use one of the official PostgreSQL provided repositories:
- Install the pgcrypto extension. It will also need to be enabled on your DSpace Database (see Installation instructions below for more info). The pgcrypto extension allows DSpace to create UUIDs (universally unique identifiers) for all objects in DSpace, which means that (internal) object identifiers are now globally unique and no longer tied to database sequences.
- On most Linux operating systems (Ubuntu, Debian, RedHat), this extension is provided in the "postgresql-contrib" package in your package manager. So, ensure you've installed "postgresql-contrib".
- On Windows, this extension should be provided automatically by the installer (check your "[PostgreSQL]/share/extension" folder for files starting with "pgcrypto")
- Unicode (specifically UTF-8) support must be enabled (but this is enabled by default).
- Once installed, you need to enable TCP/IP connections (DSpace uses JDBC):
- In
postgresql.conf: uncomment the line starting: listen_addresses = 'localhost'. This is the default, in recent PostgreSQL releases, but you should at least check it. Then tighten up security a bit by editing pg_hba.conf and adding this line: | Code Block |
|---|
host dspace dspace 127.0.0.1 255.255.255.255 md5 |
This should appear before any lines matching all databases, because the first matching rule governs. - Then restart PostgreSQL.
Apache Solr 9.x (full-text index/search service)| Note |
|---|
| title | Solr 9.8 and later require setting "solr.config.lib.enabled=true" |
|---|
| If you are using Solr 9.8 or later, you must specify "-Dsolr.config.lib.enabled=true" in your SOLR_OPTS environment variable, or on the command-line when you start Solr. For example: export SOLR_OPTS="-Dsolr.config.lib.enabled=true"
This "solr.config.lib.enabled" setting allows for "solrconfig.xml" configuration files to still use "<lib>" tags to import plugins. This is required for DSpace, because several of our Solr cores (search, oai, etc) import plugins via these "<lib>" tags. |
| Note |
|---|
| title | On macOS, Solr 9 may initially throw an IllegalStateException |
|---|
| On macOS, starting up Solr 9 may result in an exception that looks like this: java.lang.IllegalStateException: java.security.AccessControlException: access denied ("java.io.FilePermission" "/private/var/folders/[some-path]") If you encounter this, it's a sign that Solr doesn't have permission to read the specified file/directory. The fix is to start Solr with "-Djava.security.manager=allow" added to your SOLR_OPTS environment variable or specified on the command-line when you start Solr.
|
| Note |
|---|
Make sure to install Solr with Authentication disabled (which is the default). DSpace does not yet support authentication to Solr (see https://github.com/DSpace/DSpace/issues/3169). Instead, we recommend placing Solr behind a firewall and/or ensuring port 8983 (which Solr runs on) is not available for public/anonymous access on the web. Solr only needs to be accessible to requests from the DSpace backend. |
Solr can be obtained at the Apache Software Foundation site for Solr. You may wish to read portions of the quick-start tutorial to make yourself familiar with Solr's layout and operation. Unpack a Solr .tgz or .zip archive in a place where you keep software that is not handled by your operating system's package management tools, and arrange to have it running whenever DSpace is running. You should ensure that Solr's index directories will have plenty of room to grow. You should also ensure that port 8983 is not in use by something else, or configure Solr to use a different port. If you are looking for a good place to put Solr, consider /opt or /usr/local. You can simply unpack Solr in one place and use it. Or you can configure Solr to keep its indexes elsewhere, if you need to – see the Solr documentation for how to do this. It is not necessary to dedicate a Solr instance to DSpace, if you already have one and want to use it. Simply copy DSpace's cores to a place where they will be discovered by Solr. See below. (Optional) Servlet Engine (Apache Tomcat 10.1.x, Jetty, Caucho Resin or equivalent)| Info |
|---|
| title | Tomcat is optional depending on the installation approach you choose |
|---|
| As of DSpace 8, two deployment options exist for the backend: - The web application installation (traditional approach) still requires installing Tomcat and deploying the DSpace backend ("server") web application into your Tomcat installation. This approach is the same as DSpace 7 and below.
- (NEW) A new Runnable JAR is available for the DSpace backend which embeds Tomcat within it and is fully executable on its own (see step 12: "Deploy web application" below for more details).
If you choose the first approach, Tomcat is required. If you choose the second, you no longer need to install Tomcat. |
| Note |
|---|
| title | Older versions of Tomcat or Jetty are not supported |
|---|
| The DSpace backend can no longer be run on Tomcat 9 as it has been updated to Spring 6 / Spring Boot v3 to support Jakarta Enterprise Edition 9+. If you are using a different servlet engine, you must ensure it is compatible with Jakarta EE 9+ (e.g. Jetty must be version 11 or later) |
- Apache Tomcat 10.1.x. Tomcat can be downloaded from the following location: http://tomcat.apache.org. It is also provided via many operating system package managers.
- The Tomcat owner (i.e. the user that Tomcat runs as) must have read/write access to the DSpace installation directory (i.e.
[dspace]). There are a few common ways this may be achieved: On Debian systems, you may also need to modify or override the "tomcat.service" file to specify the DSpace installation directory in the list of ReadWritePaths. For example: | Code Block |
|---|
# Replace [dspace] with the full path of your DSpace install
ReadWritePaths=[dspace] |
- You need to ensure that Tomcat a) has enough memory to run DSpace, and b) uses UTF-8 as its default file encoding for international character support. So ensure in your startup scripts (etc) that the following environment variable is set: JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
Modifications in [tomcat]/conf/server.xml : You also need to alter Tomcat's default configuration to support searching and browsing of multi-byte UTF-8 correctly. You need to add a configuration option to the <Connector> element in [tomcat]/config/server.xml: URIEncoding="UTF-8" e.g. if you're using the default Tomcat config, it should read: | Code Block |
|---|
| <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080"
minSpareThreads="25"
enableLookups="false"
redirectPort="8443"
connectionTimeout="20000"
disableUploadTimeout="true"
URIEncoding="UTF-8"/>
|
You may change the port from 8080 by editing it in the file above, and by setting the variable CONNECTOR_PORT in server.xml. You should set the URIEncoding even if you are running Tomcat behind a reverse proxy (Apache HTTPD, Nginx, etc.) via AJP.
- Jetty 11+ or Caucho Resin
- NOTE: DSpace is not actively tested on these servlet engines. That said, DSpace should be able to run on a Tomcat-equivalent servlet Engine, such as Jetty (https://www.eclipse.org/jetty/) or Caucho Resin (http://www.caucho.com/). If you choose to use a different servlet container, please ensure that it supports Jakarta EE 9+ (e.g. Jetty must be version 11 or later)
- Jetty and Resin are configured for correct handling of UTF-8 by default.
(Optional) IP to City Database for Location-based StatisticsOptionally, if you wish to record the geographic locations of clients in DSpace usage statistics records, you will need to install (and regularly update) one of the following:
- Either, a copy of MaxMind's GeoLite City database (in MMDB format)
- NOTE: Installing MaxMind GeoLite2 is free. However, you must sign up for a (free) MaxMind account in order to obtain a license key to use the GeoLite2 database.
- You may download GeoLite2 directly from MaxMind, or many Linux distributions provide the
geoipupdate tool directly via their package manager. You will still need to configure your license key prior to usage. - Once the "GeoLite2-City.mmdb" database file is installed on your system, you will need to configure its location as the value of
usage-statistics.dbfile in your local.cfg configuration file. - See the "Managing the City Database File" section of SOLR Statistics for more information about using a City Database with DSpace.
- Or, you can alternatively use/install DB-IP's City Lite database (in MMDB format)
- This database is also free to use, but does not require an account to download.
- Once the "dbip-city-lite.mmdb" database file is installed on your system, you will need to configure its location as the value of
usage-statistics.dbfile in your local.cfg configuration file. - See the "Managing the City Database File" section of SOLR Statistics for more information about using a City Database with DSpace.
|