Create a new instance of Xwiki
Hi Cwiki users, I noticed the instructions for adding another space, unfortunately this isn't quite what I needed. Here are some instuctions for creating a new instance of Xwiki in case you'd like to keep two completly separate databases (i.e. searching one will not give results for the other). I wasn't quite sure where to put this online. 1 Create a new instance of Xwiki # Create a folder with the name of the new Xwiki (i.e. support) in the tomcat/webapps folder) # Extract the xwiki war file into this folder # In the webinf/hibernate.cfg.xml file * modify {code:xml} <property name="connection.url">jdbc:mysql://localhost/xwiki</property> {code} replacing xwiki with the name of the new database you wish to create # create a new database with the same name as in the line above # import the sample database located here [http://www.xwiki.org/xwiki/bin/view/Main/XWikiDownload] into your new database All set! Go to http://localhost/your_wiki_here/bin/view/Main/WebHome to check it out. Caution, you may wish to modify the index.html file to point to your url just in case.
Hi, This is one way of create multiple wikis served from the same servlet engine. However if you start having over 3 or 4 wikis, this will become a resource hog with many connections open to the database and multiple caches.. The solution is to use real virtual servers. See http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis We could improve a little this documentation. Ludovic Lichman, Mark Eugene wrote:
Hi Cwiki users,
I noticed the instructions for adding another space, unfortunately this isn't quite what I needed.
Here are some instuctions for creating a new instance of Xwiki in case you'd like to keep two completly separate databases (i.e. searching one will not give results for the other). I wasn't quite sure where to put this online.
1 Create a new instance of Xwiki # Create a folder with the name of the new Xwiki (i.e. support) in the tomcat/webapps folder) # Extract the xwiki war file into this folder # In the webinf/hibernate.cfg.xml file * modify {code:xml} <property name="connection.url">jdbc:mysql://localhost/xwiki</property> {code} replacing xwiki with the name of the new database you wish to create # create a new database with the same name as in the line above # import the sample database located here [http://www.xwiki.org/xwiki/bin/view/Main/XWikiDownload] into your new database
All set! Go to http://localhost/your_wiki_here/bin/view/Main/WebHome to check it out.
Caution, you may wish to modify the index.html file to point to your url just in case.
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
participants (2)
-
Lichman, Mark Eugene -
Ludovic Dubost