Fedora, along with Drupal, is one of the core technologies behind Islandora. This chapter will cover the basic steps for installing Fedora - for more information, please see the FedoraCommons documentation.
Fedora is available under the terms of the Apache License and has a very active open source community producing additional tools, applications and utilities. Islandora currently uses Fedora version 3.7.
Fedora must have the following to be set-up and running prior to beginning your installation:
Prepare your local environment variables by modifying the .bash_profile or .profile file in the home directory of the fedora user.
Fedora will need to be given variables to find the main fedora directory, the main tomcat directory, and the location of your Java installation (JDK 6/7). An example set of [Unix/Linux] environment variables are given here.
The following example assumes Java is installed in /usr/lib/jvm/java-7-oracle and Fedora is installed in /usr/local/fedora:
PATH=/opt/java/bin:$PATH:$HOME/bin export FEDORA_HOME=/usr/local/fedora export CATALINA_HOME=/usr/local/fedora/tomcat export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=128m -Djavax.net.ssl.trustStore=/usr/local/fedora/server/truststore -Djavax.net.ssl.trustStorePassword=tomcat" export JAVA_HOME=/usr/lib/jvm/java-7-oracle export JRE_HOME=/usr/lib/jvm/java-7-oracle/jre export KAKADU_LIBRARY_PATH=/usr/local/djatoka/lib/Linux-x86-64 |
Run the following command:
$ java -jar fcrepo-installer-[version number].jar [note: 'version number' will vary depending on the version you've downloaded] |
Select the CUSTOM INSTALL.
It is important to select the Custom Install as it will enable the resource index by default, which is the backbone of Islandora's collection views and other functionality. |
The Fedora installer will prompt you for responses to a series of questions. Answer these questions according to the following "install.properties":
Installation type - custom home directory - /usr/local/fedora Password - [fedora_password] server host - localhost [could be a domain name etc depending on your environment] app server context - default API-A - default false ssl avail - true ssl required for api-a - default false ssl required for api-m - false servlet included - default included tomcat home -default tomcat http port - 8080 default tomcat shutdown - 8005 default tomcat ssl - 8443 default keystore file - included databse - mysql mysql driver - default database username - [fedora_database_user] database password - [password] jdbc url - default jdbc class- default Enable FESL authn - true Enable FESL authz - false policy enforcement - true low level storage - default akubra-fs resource index - true messaging - true messaging provider - default deploy local services - true |
(Source: Installation and Configuration Guide - Fedora 3.7 Documentation) Servlet Container The installer will automatically configure and deploy to Tomcat 6.0.x and 7.0.x servlet containers. However, if an existing Tomcat installation (as opposed to the Tomcat bundled with the installer) was selected, the installer will not overwrite your existing Other servlet containers will require manual deployment of the war files located at Application Server Context The installer provides the option to enter an application server context name under which Fedora will be deployed. The context name defaults to Fedora (resulting in http[s]://host:port/fedora), however any other valid context name can be supplied. The installer will name the resulting war file according to the supplied context name (defaults to SSL Configuring SSL support for Fedora's API-M interface is an optional feature. It strongly recommended for production environments if Fedora is exposed to unsecured application and users. However, if your installation is within a managed data center with firewall services, you may choose to provide SSL using a software or hardware front-end instead. For example, a reverse proxy implemented using the Apache HTTP Server and hiding Fedora generally provides better SSL performance. If the Tomcat servlet container is selected, the installer will configure Please consult your servlet container's documentation for certificate generation and installation. (In particular, the example certificate provided by the installer for Tomcat should not be used in a production environment). If Fedora is configured to use SSL, the
FeSL The Fedora Security Layer is an experimental feature introduced from Fedora 3.3. FeSL consists of two separate components, which can be selected independently during the installation: FeSL Authentication and FeSL Authorisation. FeSL Authentication is now the default authentication mechanism, however Fesl Authorization is still considered experimental. FeSL Authorization is a replacement for the legacy XACML policy enforcement, so you should not enable XACML policy enforcement if you are going to use FeSL Authorization, as this will provide an alternative XACML policy enforcement engine. See FeSL Installation for more information about FeSL requirements that must be satisfied prior to installation. Resource Index If the Resource Index is enabled, Fedora will use Mulgara as its underlying triplestore, with full-text indexing disabled. Messaging |
Once the script has collected your answers and configured Fedora on your system, the values are written to the "install.properties" file and will have a final location in $FEDORA_HOME/install.
To create this file:
Install Fedora by entering:
java -jar fcrepo-installer-[version number].jar install.properties [note: 'version number' will vary depending on the version you've downloaded] |
Once the installation script has completed and Fedora is installed, you need to: start your Fedora instance by running:
$FEDORA_HOME/tomcat/bin/startup.sh |
To verify that Fedora has successfully started:
Install required polices, remove some restrictive policies.
Remove they deny-purge policies:
$ rm -v /usr/local/fedora/data/fedora-xacml-policies/repository-policies/default/deny-purge-* |
Navigate to the Fedora "repository-policies" directory:
$ cd /usr/local/fedora/data/fedora-xacml-policies/repository-policies/ |
Download / Clone the Islandora specific XACML policies from the Islandora GitHub XACML Policies repo
$ git clone https://github.com/Islandora/islandora-xacml-policies.git islandora |
The Islandora XACML policies should now be located in "/usr/local/fedora/data/fedora-xacml-policies/repository-policies/islandora". There should be at least these 4 policies:
A standard installation's XACML policy directory structure should look like this:
/usr/local/fedora/data/fedora-xacml-policies/repository-policies/ ├── default │ ├── deny-apim-if-not-localhost.xml │ ├── deny-inactive-or-deleted-objects-or-datastreams-if-not-administrator.xml │ ├── deny-policy-management-if-not-administrator.xml │ ├── deny-reloadPolicies-if-not-localhost.xml │ ├── deny-unallowed-file-resolution.xml │ ├── permit-anything-to-administrator.xml │ ├── permit-apia-unrestricted.xml │ ├── permit-dsstate-check-unrestricted.xml │ ├── permit-oai-unrestricted.xml │ ├── permit-serverStatus-unrestricted.xml │ └── readme.txt └── islandora ├── permit-apim-to-authenticated-user.xml ├── permit-getDatastreamHistory-unrestricted.xml ├── permit-getDatastream-unrestricted.xml └── permit-upload-to-authenticated-user.xml |
Install required polices, remove some restrictive policies.
Locate the text:
<AttributeValue DataType="<a href="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#string</a>">127.0.0.1</AttributeValue> |
Duplicate this line for every IP address you wish to access Fedora from (i.e. your Islandora Drupal server, your desktop computer, etc).
For example
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">127.0.0.1</AttributeValue> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">192.168.56.1</AttributeValue> |
The Fedora default XACML policies can be restored to their default state at any time by simply removing the 'default' directory, and stopping/starting Fedora. Always backup your polices first before doing this! |
Start up Fedora by using the startup command from step 8:
$FEDORA_HOME/tomcat/bin/startup.sh |
For information on using Fedora, make use of the tutorials at the Fedora Commons site.