Difference between revisions of "VuFind"
m (→Step 8) |
m (→Step 6) |
||
| Line 38: | Line 38: | ||
sudo apt-get -y install apache2 | sudo apt-get -y install apache2 | ||
sudo a2enmod rewrite | sudo a2enmod rewrite | ||
| − | sudo ln -s /usr/local/vufind | + | sudo ln -s /usr/local/vufind/config/httpd-vufind.conf /etc/apache2/conf.d/vufind |
sudo /etc/init.d/apache2 reload | sudo /etc/init.d/apache2 reload | ||
Revision as of 14:43, 17 June 2014
Contents
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/config/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
Step 8
To remove the /vufind sub-site definition so that VuFind loads at the root of your domain, follow the steps below.
- In the [Site] section of /usr/local/vufind/config/vufind/config.ini, set the “url” setting to “http://yourdomain.edu” (obviously replacing this with your real domain name).
In /usr/local/vufind/config/vufind/httpd-vufind.conf, make the following changes:
- In the AliasMatch lines at the top, change “AliasMatch ^/vufind2/themes/…” to “AliasMatch ^/themes/…”.
- Remove the Alias line under “Configuration for general VuFind base”.
- RewriteBase should be /