VuFind

From Libopedia
Jump to navigation Jump to search

Introduction

This wiki page documents the installation and configuration of VuFind on an Ubuntu server.

See: https://vufind.org

Installation

Step 1

Install the Ubuntu 12.04 LTS 64 Bit server software.

When asked for additional software to install with "Tasksel", select OpenSSH and LAMP Stack.

For our test server we used a 100GB virtual machine, 20GB was used for the root partition, 1GB for swap and the rest mounted on the /var folder.

We are using http://search.sun.ac.za as the hostname and the service will be advertised as SUNSearch.

Step 2

Login to the server remotely and setup the software sources for the server. See: http://ubuntu.sun.ac.za/wiki/index.php/Repositories-12.04-LTS then update the software.

Step 3

Install the following software.

sudo apt-get -y install php5 php5-dev php-pear php5-json php5-ldap php5-mcrypt php5-mysql php5-xsl php5-intl php5-gd
sudo apt-get -y install default-jdk

Step 4

Download the VuFind software to the /tmp folder and create an installation folder as follows.

cd /tmp
wget http://web.lib.sun.ac.za/files/vufind/vufind-2.2.1.tar.gz
tar -xzvf vufind-2.2.1.tar.gz
mv vufind-2.2.1 /usr/local/vufind

Step 5

Setup local file and folder permissions as follows.

sudo chown -R www-data:www-data /usr/local/vufind/local/cache
sudo chown -R www-data:www-data /usr/local/vufind/local/config
mkdir /usr/local/vufind/local/cache/cli chmod 777 /usr/local/vufind/local/cache/cli

Step 6

Enable Apache2 configuration for VuFind as follows.

sudo apt-get -y install apache2
sudo a2enmod rewrite
sudo ln -s /usr/local/vufind/local/httpd-vufind.conf /etc/apache2/conf.d/vufind
sudo /etc/init.d/apache2 reload

Step 7

Setup the environment variables as follows.

sudo sh -c 'echo export JAVA_HOME=\"/usr/lib/jvm/default-java\" >> /etc/profile'
sudo sh -c 'echo export VUFIND_HOME=\"/usr/local/vufind\"  >> /etc/profile'
sudo sh -c 'echo export VUFIND_LOCAL_DIR=\"/usr/local/vufind/local\"  >> /etc/profile'
source /etc/profile

References