Installing Dspace 1.8 on Ubuntu 12.04



Similar documents
AgriOcean DSpace, a customized version of DSpace. Technical background

Setting Up CAS with Ofbiz 5

Security Workshop. Apache + SSL exercises in Ubuntu. 1 Install apache2 and enable SSL 2. 2 Generate a Local Certificate 2

Configuring Ubuntu Server as a Firewall and Reverse Proxy for OWA 2007 Configuration Guide

SecuritySpy Setting Up SecuritySpy Over SSL

Solr Bridge Search Installation Guide

Mastering Advanced GeoNetwork

Ciphermail Gateway Separate Front-end and Back-end Configuration Guide

Installing an SSL certificate on the InfoVaultz Cloud Appliance

Enterprise SSL Support

Sun Java System Web Server 6.1 Using Self-Signed OpenSSL Certificate. Brent Wagner, Seeds of Genius October 2007

HOWTO. Configure Nginx for SSL with DoD CAC Authentication on CentOS 6.3. Joshua Penton Geocent, LLC

Running Multiple Shibboleth IdP Instances on a Single Host

Apache Security with SSL Using Linux

LAB :: Secure HTTP traffic using Secure Sockets Layer (SSL) Certificate

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

To enable https for appliance

Apache Security with SSL Using Ubuntu

Linux Deployment Guide. How to deploy Network Shutdown Module for Linux

CentOS. Apache. 1 de 8. Pricing Features Customers Help & Community. Sign Up Login Help & Community. Articles & Tutorials. Questions. Chat.

Integrating Apache Web Server with Tomcat Application Server

EQUELLA. Clustering Configuration Guide. Version 6.0

Magento Search Extension TECHNICAL DOCUMENTATION

Installation documentation for Ulteo Open Virtual Desktop

Installation & Upgrade Guide

Deployment and Monitoring. Pascal Robert MacTI

CipherMail Gateway Installation Guide

Lucid Key Server v2 Installation Documentation.

LAB :: Secure HTTP traffic using Secure Sockets Layer (SSL) Certificate

Apache, SSL and Digital Signatures Using FreeBSD

Extending Remote Desktop for Large Installations. Distributed Package Installs

Perforce Helix Threat Detection On-Premise Deployment Guide

User s guide. APACHE SSL Linux. Using non-qualified certificates with APACHE SSL Linux. version 1.3 UNIZETO TECHNOLOGIES S.A.

SOLR INSTALLATION & CONFIGURATION GUIDE FOR USE IN THE NTER SYSTEM

Application Note AN1502

Exercises: FreeBSD: Apache and SSL: SANOG VI IP Services Workshop

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

ViMP 3.0. SSL Configuration in Apache 2.2. Author: ViMP GmbH

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact

Creating Certificate Authorities and self-signed SSL certificates

IIS, FTP Server and Windows

CLEARSWIFT SECURE Web Gateway HTTPS/SSL decryption

Partek Flow Installation Guide

JMETER - MONITOR TEST PLAN

HOWTO: Set up a Vyatta device with ThreatSTOP in router mode

How to setup HTTP & HTTPS Load balancer for Mediator

Spectrum Spatial Analyst Version 4.0. Installation Guide for Linux. Contents:

Apache and Virtual Hosts Exercises

Ulteo Open Virtual Desktop Installation

JAMF Software Server Installation Guide for Linux. Version 8.6

itixi Ubuntu Server Deployment How-To/Information

IUCLID 5 Guidance and support. Installation Guide Distributed Version. Linux - Apache Tomcat - PostgreSQL

NRPE Documentation CONTENTS. 1. Introduction... a) Purpose... b) Design Overview Example Uses... a) Direct Checks... b) Indirect Checks...

VERSION 9.02 INSTALLATION GUIDE.

Setting up Ensembl Solr Search on an Ubuntu external server 22nd November 2013

NEFSIS DEDICATED SERVER

Implementing a Weblogic Architecture with High Availability

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

BlackBerry Enterprise Service 10. Version: Configuration Guide

Unifying Information Security. Implementing TLS on the CLEARSWIFT SECURE Gateway

CDH installation & Application Test Report

CipherMail Gateway Upgrade Guide

EventTracker Windows syslog User Guide

Configuration Manual

APACHE HTTP SERVER 2.2.8

INASP: Effective Network Management Workshops

Oracle Mobile Security Suite Workshop. Installation

Native SSL support was implemented in HAProxy 1.5.x, which was released as a stable version in June 2014.

Installing an open source version of MateCat

Creating a DUO MFA Service in AWS

MassTransit 6.0 Enterprise Web Configuration for Macintosh OS 10.5 Server

IMPLEMENTATION OF CIPA - PUDUCHERRY UT SERVER MANAGEMENT. Client/Server Installation Notes - Prepared by NIC, Puducherry UT.

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

Example Apache Server Installation for Centricity Electronic Medical Record browser & mobile access

Easy Setup Guide 1&1 CLOUD SERVER. Creating Backups. for Linux

Table of Contents. Requirements and Options 1. Checklist for Server Installation 5. Checklist for Importing from CyberAudit

2. Boot using the Debian Net Install cd and when prompted to continue type "linux26", this will load the 2.6 kernel

Red Hat Linux Guide to Installing Root Certificates, Generating CSR and Installing SSL Certificate

Installing Apache as an HTTP Proxy to the local port of the Secure Agent s Process Server

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

Creating an ESS instance on the Amazon Cloud

Technical specification

Back Up Linux And Windows Systems With BackupPC

Clearswift Information Governance

Administering mod_jk. To Enable mod_jk

Securing Your Apache Web Server With a Thawte Digital Certificate

Tableau Spark SQL Setup Instructions

Escenic Content Engine Installation Guide

Git Fusion Guide August 2015 Update

Parallels Plesk Panel 11 for your Linux server

Net/FSE Installation Guide v1.0.1, 1/21/2008

Install BA Server with Your Own BA Repository

CERTIFICATE-BASED SINGLE SIGN-ON FOR EMC MY DOCUMENTUM FOR MICROSOFT OUTLOOK USING CA SITEMINDER

How To Link Tomcat 5 with IIS 6 on Windows 2003 Server using the JK2 ajp13 connector

HOWTO: Set up a Vyatta device with ThreatSTOP in bridge mode

NSi Mobile Installation Guide. Version 6.2

Installing BIRT Analytics 4.4

Written by Wirabumi Software Sunday, 30 December :27 - Last Updated Thursday, 03 January :52

Transcription:

Installing Dspace 1.8 on Ubuntu 12.04 This is an abridged version of the dspace 1.8 installation guide, specifically targeted at getting a basic server running from scratch using Ubuntu. More information can be found in the full dspace 1.8.x installation guide located here: https://wiki.duraspace.org/display/dsdoc18/installation First, prepare an Ubuntu server for Dspace deployment. This document assumes a base Ubuntu 12.04 LTS server install. Make sure that networking is up, with a valid IP and route to the internet. Install and configure openssh and firewall Done from console sudo apt-get install openssh-server Enter your sudo password if needed sudo service ssh restart sudo ufw allow 22 sudo ufw allow 80 sudo ufw allow 443 sudo ufw enable Note that this opens up to the world connections on ssh, http and https. If a stricter policy is needed, it should be configured here. Also, sshd should be configured to match the site standards, including things like public key vs password login, norootlogon options, etc. Now SSH into your server. The rest of the config will be run from there. Installation of prerequisite applications for Dspace sudo apt-get -y install openjdk-6-jdk tasksel Use Tasksel to configure server components sudo tasksel Select the following packages. Use space bar for select applications from list. [*] LAMP server [*] PostgreSQL database [*] Tomcat Java server Use tab to select OK button and enter You will need to select a MySQL root password during this procedure. IThis is a shortcut to get the correct packages installed; we will be configuring Dspace to use PostgreSQL. Install Ant and Maven sudo apt-get -y install ant maven2

Create the database user (dspace) sudo su postgres createuser -U postgres -d -A -P dspace Enter password for new role. The default password expected by the dspace server is dspace. Note: If you choose anything different (recommended), make sure you change it in the dspace.cfg file in the build folder before you deploy the install with ant. Shall the new role be allowed to create more new roles? (y/n) n exit Allow the database user (dspace) to connect to the database The version number in the line below may be different than what you are using. sudo vi /etc/postgresql/9.1/main/pg_hba.conf Add this line to the configuration file at the end local all dspace md5 Save and close the file Restart PostgreSQL sudo service postgresql restart Configure local Unix user dspace : sudo useradd -m dspace sudo passwd dspace Enter your chosen password for dspace user be careful as the dspace user by default is given a shell login, which means that if someone guesses the dspace password, they will be able to log on remotely Create the /usr/local/dspace directory if it does not yet exist and assign permissions sudo mkdir -p /usr/local/dspace sudo chown dspace:dspace /usr/local/dspace Create the PostgreSQL 'dspace' database. sudo -u dspace createdb -U dspace -E UNICODE dspace Configure Tomcat to know about the DSpace webapps. Make a copy of the original tomcat config (for later upgrade/diff comparisons) sudo cp /etc/tomcat6/server.xml /etc/tomcat6/server.xml.orig

sudo vi /etc/tomcat6/server.xml Insert the following chunk of text just above the closing </Host> <!-- Define a new context path for all DSpace web apps --> <Context path="/xmlui" docbase="/usr/local/dspace/webapps/xmlui" allowlinking="true"/> <Context path="/sword" docbase="/usr/local/dspace/webapps/sword" allowlinking="true"/> <Context path="/oai" docbase="/usr/local/dspace/webapps/oai" allowlinking="true"/> <Context path="/jspui" docbase="/usr/local/dspace/webapps/jspui" allowlinking="true"/> <Context path="/lni" docbase="/usr/local/dspace/webapps/lni" allowlinking="true"/> <Context path="/solr" docbase="/usr/local/dspace/webapps/solr" allowlinking="true"/> Save and close file Download and unpack the current version of Dspace. If a newer version exists, simply replace the 1.8.2 with the new version number in the following lines. Newer versions, especially full point releases (i.e. 1.9) may need additional changes to these directions. Consult the dspace installation manual online for more information. sudo mkdir /usr/local/src/dspace sudo chmod -R 777 /usr/local/src/dspace cd /usr/local/src/dspace wget http://sourceforge.net/projects/dspace/files/dspace%20stable/1.8.2/dspace-1.8.2-src-release.tar.bz2 tar -xvjf dspace-1.8.2-src-release.tar.bz2 cd /usr/local/src/dspace/dspace-1.8.2-src-release Make a backup of dspace.cfg and edit the dspace.dir line to reflect new location of /usr/local/dspace cp dspace/config/dspace.cfg dspace/config/dspace.cfg.orig vi /usr/local/src/dspace/dspace-1.8.2-src-release/dspace/config/dspace.cfg If you made the change to the default password for the PostgreSQL server, you will want to make that here as well. If you know what your dspace configuration needs to look like, go through the config directory and make changes so the system will deploy with these changes. Otherwise they can be changed on the running system. At a minimum, you'll want to change the hostname, name, mail server and email contact addresses. See the dspace installation manual for more information. Save file mvn -U package cd dspace/target/dspace-1.8.2-build sudo ant fresh_install Set Tomcat to run as dspace user and restart the Tomcat server sudo vi /etc/default/tomcat6 Change TOMCAT_USER and TOMCAT_GROUP from tomcat6 to dspace

sudo chown -R root:dspace /etc/tomcat6 sudo chmod 775 /var/cache/tomcat6 sudo chown -R dspace:dspace /var/cache/tomcat6 sudo chown -R root:dspace /var/lib/tomcat6/webapps sudo chown -R root:dspace /var/log/tomcat6 sudo chown -R dspace:dspace /usr/local/dspace sudo service tomcat6 stop Check for running tomcat6 service with ps -ef grep java Look for any java process running as the tomcat user. If one exists, end it with sudo kill whateverthepidis sudo service tomcat6 start Make an initial administrator user account in DSpace: Switch to the dspace user sudo su dspace Create the initial Dspace Admin user /usr/local/dspace/bin/dspace create-administrator Enter data for initial Dspace admin. This probably should not be an individual. exit The next section covers configuration of the Apache Java Proxy to allow Dspace to be accessible from port 80/443 and to setup rewrite for our base url. Configure SSL Enable SSL Module sudo a2enmod ssl sudo service apache2 restart Create a Self-Signed SSL certificate. If you have a certificate from a CA, install them here instead. A proper DNS name should be used instead of server if you are getting your own certificates. cd /tmp openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr Here you will have to fill out the CSR as follows. You will be asked several questions here. openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt sudo cp server.crt /etc/ssl/certs/

sudo cp server.key /etc/ssl/private/ Change default-ssl file to enable ssl sudo vi /etc/apache2/sites-available/default-ssl Add following line below Server Admin line: ServerName example.com:443 Verify the following lines are correctly configured: SSLEngine on SSLCertificateFile /etc/ssl/certs/server.crt SSLCertificateKeyFile /etc/ssl/private/server.key Activate SSL Site sudo a2ensite default-ssl Enable AJP in Tomcat sudo vi /etc/tomcat6/server.xml Remove the <!- - and the - -> from line <Connector port="8009" protocol="ajp/1.3" redirectport="8443" /> Remove the <!- - and the - -> from line <Connector port="8443" protocol="http/1.1" redirectport="8443"../> Enable proper apache2 modules sudo a2enmod proxy_ajp rewrite sudo vi /etc/apache2/conf.d/proxy_ajp.conf Add the following lines into the file (it should be empty): # # When loaded, the mod_proxy_ajp module adds support for # proxying to an AJP/1.3 backend server (such as Tomcat). # To proxy to an AJP backend, use the "ajp://" URI scheme; # Tomcat is configured to listen on port 8009 for AJP requests # by default. # # Uncomment the following lines to serve the ROOT webapp # under the /tomcat/ location, and the jsp-examples webapp # under the /examples/ location. #

#ProxyPass /tomcat/ ajp://localhost:8009/ #ProxyPass /examples/ ajp://localhost:8009/jsp-examples/ ProxyPass /jspui ProxyPass /oai ProxyPass /xmlui ProxyPass /solr ajp://localhost:8009/jspui ajp://localhost:8009/oai ajp://localhost:8009/xmlui ajp://localhost:8009/solr Configure apache2 rewrite sudo vi /etc/apache2/httpd.conf Add the following lines into the file: *Note replace localhost with your proper server name RedirectMatch ^/$ https://localhost/xmlui/ RewriteEngine On RewriteCond %{SERVER_PORT}!443 RewriteRule (/xmlui/.*) https://localhost%{request_uri} Perform any additional customizations in the current dspace.cfg file sudo vi /usr/local/dspace/config/dspace.cfg The most commonly altered lines to customize your install are: dspace.hostname = localhost dspace.baseurl = http://localhost:8080 dspace.name = DSpace at My University mail.server = smtp.uoregon.edu mail.from.address = dspace@admin.com feedback.recipient = dspace-help@myu.edu mail.admin = dspace-help@myu.edu These changes should all be done once you have all of the pertinent information like email address and DNS names. Restart Tomact and then Apache2 sudo service tomcat6 restart sleep 20 sudo service apache2 restart

That is all that is required to install DSpace on Ubuntu. Test in your browser now at https://yourservername Cron Jobs once the configuration is set up, these cron jobs should be set sudo su dspace crontab e Add the following lines. Adjust times to your own specs. Note that the vacuumdb may not be needed with recent versions of postgresql as long as postgresql autovacuum is enabled. # Send out subscription e-mails at 01:00 every day 0 1 * * * /usr/local/dspace/bin/dspace sub-daily # Run the media filter at 02:00 every day 0 2 * * * /usr/local/dspace/bin/dspace filter-media # Run the checksum checker at 03:00 0 3 * * * /usr/local/dspace/bin/dspace checker -lp # Mail the results to the sysadmin at 04:00 0 4 * * * /usr/local/dspace/bin/dspace checker-emailer -c # Clean up the database nightly at 4.20am 20 4 * * * vacuumdb --analyze dspace > /dev/null 2>&1 # Run stat analysis 0 1 * * * /usr/local/dspace/bin/dspace stat-general 0 1 * * * /usr/local/dspace/bin/dspace stat-monthly 0 2 * * * /usr/local/dspace/bin/dspace stat-report-general 0 2 * * * /usr/local/dspace/bin/dspace stat-report-monthly