Pages

Monday, September 21, 2020

Install Vufind in Ubuntu

All steps are copied from the official documentation of Vufind website.

Update & upgrade Ubuntu

sudo apt update
sudo apt upgrade

Install Apache

sudo apt-get -y install apache2

sudo a2enmod rewrite

sudo /etc/init.d/apache2 force-reload


Install PHP

sudo apt-get –y install libapache2-mod-php php-mbstring php-pear php php-dev php-gd php-intl php-json php-ldap php-mysql php-xml php-soap php-curl


Install Java

sudo apt-get –y install default-jdk


Download vufind [Check the version number from the official website]

cd /tmp
tar -xzvf vufind-7.0.1.tar.gz
sudo mv vufind-7.0.1 /usr/local/vufind

 

Change directory and run PHP

cd /usr/local/vufind
php install.php

 

Configure permission as well as local variables

sudo chown -R www-data:www-data /usr/local/vufind/local/cache

sudo chown -R www-data:www-data /usr/local/vufind/local/config

sudo mkdir /usr/local/vufind/local/cache/cli

sudo chmod 777 /usr/local/vufind/local/cache/cli


Link Vufind to apache

sudo ln -s /usr/local/vufind/local/httpd-vufind.conf /etc/apache2/conf-enabled/vufind.conf


Restart apache

sudo /etc/init.d/apache2 reload

 

Set environment variables

sudo sh -c 'echo export JAVA_HOME=\"/usr/lib/jvm/default-java\" > /etc/profile.d/vufind.sh'

sudo sh -c 'echo export VUFIND_HOME=\"/usr/local/vufind\" >> /etc/profile.d/vufind.sh'
   
sudo sh -c 'echo export VUFIND_LOCAL_DIR=\"/usr/local/vufind/local\" >> /etc/profile.d/vufind.sh'

 

Load vufind

source /etc/profile.d/vufind.sh

 

Change directory and start solr

cd /usr/local/vufind/
./solr.sh start


Configure database and Secure Server

Let’s configure database

sudo mysql –uroot –p
UPDATE mysql.user SET plugin=”WHERE User=‘root’;
FLUSH PRIVILEDGES;
quit;

Secure the database

sudo /usr/bin/mysql_secure_installation

· First option select ‘N

· Rest are ‘Y

Now you could find Vufind home page here >>

http://localhost/vufind


Reference


  • vufind.org




No comments:

Post a Comment