Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@titipat
Last active January 5, 2018 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save titipat/2ce7ab0f7b0f024409a25db50cd52dce to your computer and use it in GitHub Desktop.
Save titipat/2ce7ab0f7b0f024409a25db50cd52dce to your computer and use it in GitHub Desktop.

How to install VIVO web 1.9 on Ubuntu Server 16.04 LTS

This is a short note about how to install VIVO 1.9 web on Ubuntu 16.04 LTS. I have got highly recommend to install on above 4 cores or equal with SSD storage.

First, we need Tomcat server so, I am going to install version 8 which is the latest and the stable one.

sudo apt-get install tomcat8

Second, downloading VIVO distribute from https://github.com/vivo-project/VIVO/releases/ and extract it to somewhere you want.

Copy example-settings.xml as wherever name you want. Then, edit tomcat-dir to /var/lib/tomcat8.

Third, we need maven to build the VIVO.

sudo apt-get install maven

After that, install the VIVO via Maven command. The parameter -s is the config that we have edited. It should take a couple of minutes to complete Java dependencies hell.

sudo mvn install -s settings.xml

The building is complete, next, we have to setup a database.

sudo apt-get install mariadb-server

Then, create a new database.

mysql> CREATE DATABASE vitrodb CHARACTER SET utf8;
mysql> GRANT ALL ON vitrodb.* TO 'vitrodbUsername'@'localhost' IDENTIFIED BY 'vitrodbPassword';

We need to finish the installation. Do copy this following 2 files:

  1. /usr/local/vivo/home/example.runtime.properties to /usr/local/vivo/home/runtime.properties
  2. /usr/local/vivo/home/config/example.applicationSetup.n3 to /usr/local/vivo/home/config/applicationSetup.n3

Lastly, give a permission to tomcat8 so, the tomcat user will be able to read/write on /usr/local/vivo/home

sudo chown -R tomcat8:tomcat8 /usr/local/vivo/home
sudo chmod -R 775 /usr/local/vivo/home

Finally, we should get VIVO web available at http://YOUR_HOST_NAME:8080/vivo

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment