Monday, August 31, 2015

Installing xWiki on Ubuntu – the easy way

Just use their apt-get stuff found here: http://ift.tt/1A7ugZJ

Soooo much easier. Except for the part where you have to increase the amount of memory Tomcat7 uses (default is too little and you get this sort of error: “rror number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm”)

Here’s the steps I used:

wget -q “http://ift.tt/1JsPWnr; -O- | sudo apt-key add –

sudo wget “http://ift.tt/1JHPw04; -P /etc/apt/sources.list.d/

apt-get update

sudo apt-get install xwiki-enterprise-tomcat7-mysql

This then kicks off a bunch of downloads and installations. You will be asked for credentials to use for MySQL and XWiki and stuff.

Then, you have to do one more thing – increase the amount of memory Tomcat7 allocates:
in /etc/default/tomcat7 replace the JAVA_OPTS line with this (from: http://ift.tt/1A7ugZJ):
JAVA_OPTS=”-Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=192m”



No comments:

Post a Comment