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:
/usr/local/vivo/home/example.runtime.properties
to/usr/local/vivo/home/runtime.properties
/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