Effortless xwiki running on Windows Server

Published on 09 juillet 2014

Effortless xwiki running on Windows Server

Xwiki is one of the numerous platforms with which you can store knowledge in a structured way. Easily customizable if you’re comfortable with Java (Velocity and other Java derivated languages). It is open source and…created by cool french people. 😀

Installing it is quite easy, keeping it running can get tricky:

  • Need to download apache daemons
  • Unzip and rename the two .exe files as you want (srv=Service ; mgr = Manager). For instance XWikiJettyService.exe (same with Manager)
  • Install the service by running the following command (« D:\XWiki Entreprise 5.4.3 » is my xwiki installation folder, just replace it with your own). You might need to create the log folder before running the command though.
XWikiJettyService.exe  //IS//XWikiJettyServiceManager --DisplayName="XWiki Jetty Service" --Install="D:\XWiki Entreprise 5.4.3\XWikiJettyService.exe" --LogPath="D:\XWiki Entreprise 5.4.3\jetty\logs" --LogLevel=Debug --StdOutput=auto --StdError=auto --StartMode=jvm --StopMode=jvm --Jvm=auto --Startup=auto --JvmMx=512 --StartPath="D:\XWiki Entreprise 5.4.3" ++JvmOptions=-XX:MaxPermSize=128m --Classpath="D:\XWiki Entreprise 5.4.3\jetty\start.jar" --StartClass=org.eclipse.jetty.start.Main --StopClass=org.eclipse.jetty.stop.Main ++StopParams=--stop ++JvmOptions=-Djetty.home="D:\XWiki Entreprise 5.4.3\jetty" ++JvmOptions=-Djetty.port=8080 ++JvmOptions=-DSTOP.PORT=8079 ++JvmOptions=-DSTOP.KEY=xwiki ++JvmOptions=-Djetty.logs="D:\XWiki Entreprise 5.4.3\jetty\logs" ++JvmOptions=-Dfile.encoding=UTF8 ++JvmOptions=-Dorg.mortbay.jetty.Request.maxFormContentSize=1000000

 

  • The service should be running (check it out in the Service manager)
  • BONUS: create a task that (re)boot the xwiki periodically. A simple .bat in the /jetty folder (where the start.jar is located) with this line :
java -jar start.jar

 

Sources

comments powered by Disqus