Apache Roller

Installing and configuring Apache Roller

Install Roller

Download Roller from here

wget http://apache.mirror.rbftpnetworks.com//roller/roller-5/v5.0.1/bin/roller-weblogger-5.0.1-for-tomcat.zip
Now install the war file on the manager site

Configure Roller

cd /var/lib/tomcat6/common/classes
sudo ln -s /mnt/apps/roller/roller-custom.properties

JSP Wiki plugin

Instructions taken from Java.net

Download the plugin

From Roller Java.net

wget https://roller.dev.java.net/files/documents/190/73223/jspwiki-plugin-4.0.tar.gz

Extract into Roller WEB-INF/lib directory

tar zxvf jspwiki-plugin-4.0.tar.gz
sudo cp /mnt/apps/roller/jspwiki_plugin/*.jar /var/lib/tomcat6/webapps/roller/WEB-INF/lib/
sudo cp /mnt/apps/roller/jspwiki_plugin/jspwiki.properties /var/lib/tomcat6/webapps/roller/WEB-INF/
sudo chown tomcat6:tomcat6 /var/lib/tomcat6/webapps/roller/WEB-INF/lib/*.jar
sudo chown tomcat6:tomcat6 /var/lib/tomcat6/webapps/roller/WEB-INF/jspwiki.properties

Edit the JSPWiki properties

Update the hostname

sudo vi /var/lib/tomcat6/webapps/roller/WEB-INF/jspwiki.properties
jspwiki.baseURL=http://lazygeek.co.uk/wiki/

Add JSPWiki plugin to your Roller properties

Add the plugins (default ones and JSPWiki) to the end

sudo vi /var/lib/tomcat6/common/classes/roller-custom.properties
# Weblog entry plugins
plugins.page=\
org.apache.roller.ui.rendering.plugins.ConvertLineBreaksPlugin \
,org.apache.roller.ui.rendering.plugins.TopicTagPlugin \
,org.apache.roller.ui.rendering.plugins.ObfuscateEmailPlugin \
,org.apache.roller.ui.rendering.plugins.SmileysPlugin \
,net.java.dev.roller.plugins.weblogentry.jspwiki.WikiPlugin

Add the required jar files

sudo apt-get install -y libmysql-java
cd /usr/share/tomcat6/lib/
sudo ln -s /mnt/apps/tomcat/lib/mail.jar
sudo ln -s ../../java/mysql.jar

No longer required

Fix the error with roller-startup.log

In theory you should be editing /var/lib/tomcat6/common/classes/roller-custom.properties, but this doesn’t seem to work.

sudo vi /var/lib/tomcat6/webapps/roller/WEB-INF/classes/log4j.properties
...
log4j.appender.roller-startup.File=/var/log/tomcat6/roller-startup.log
...