Hi Duncan,
I'm not sure which document you've used but I would assume it was the
one here:
http://www.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization
I'll elaborate a bit in the document when I get a chance, but for now,
I'll try answer as well as I can.
Hope this is clear, I'm sometimes a bit fuzzy in the mornings! ;)
Please note that I'm assuming you're using at least xwiki10B1 (or any
other xwiki10Beta version). You would need the Panel application
installed (or have run the Import section of the installation procedure)
to see some of the options.
If you're using 0.9.840 it may be a bit different.
1) Running a virtual Xwiki server, from what I've observed, can only be
done with additional domains. You could possibly get around this if
you're testing locally using the LMHosts file to point different server
names to your own IP address (a reasonable document on how this works
can be found here:
http://support.microsoft.com/kb/150800). I don't
guarantee this will work, however - I've not tried it, just a thought.
To answer your other alternative, you could just get tomcat to run an
extra server instead of a virtual environment. To do this, simply copy
your xwiki folder and rename the new copy to something else, eg
"publicwiki". The link for your publicwiki is then something like
"http://localhost:8080/publicwiki/bin/view/Main/WebHome". This will use
a lot more memory and resources than a virtual wiki, however - so don't
see this as a solution, just a workaround.
2) Once you've created your class, the first thing you are guided to do
by the xwiki class sheet is to "edit your class" (the url looks
something like this:
"xwiki/bin/edit/XWiki/XWikiServerClass?editor=class"). Once you're in
this editor, you should see a side panel on the left of the screen which
is to "Add property" - options of name and type are provided; simply
enter the string "server" in the name field, and select String Class
from the dropdown type, click "Add Property" button. Repeat for owner.
NOTE: they are lowercase fields, I cannot be sure if they work if not in
lowercase.
Hope that's clearer than mud.. Please let me know if you're still stuck.
-----Original Message-----
From: Duncan Wilson [mailto:dwilson@berkeley.edu]
Sent: 22 February 2007 20:34
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] Questions on setting up virtual servers.
Hi,
I'm trying to add a second xwiki server to the server I am currently
using. I'm running tomcat and using mysql as the database on a linux
machine. I know this is going to seem like a huge barrage of questions,
but I'm new to this, so please bear with me.
First, all the instructions use different subdomains for the different
xwiki servers. I know very little about DNS, and was hoping there might
be another way. Right now the current xwiki is usually accessed just
using localhost in a browser, is there some way I could set up the
second instance to use a different address or port or even just a
different folder name without having to mess with DNS? Would it be
easier to set up my own internal DNS server?
Second, I've added the second database to mysql, and granted all
privileges to the xwiki user. So now there are two databases, xwiki (the
old one) and publicwiki (the new one). What I'm hung up on is creating a
new class called "XWikiServerClass". I've created it in the class
editor, but I'm not sure what the guide means by "add a string property"
for server and owner.
From the guide it looks like the plan is, once I get XWikiServerClass
set up, to create two pages, Xwiki.XwikiServerXwiki and
Xwiki.XwikiServerPublicwiki. I then attach the XWikiServerClass object
to each page and set the owner and server fields. Then change the
xwiki.virtual entry from 0 to 1 in xwiki.cfg, restart tomcat. Does this
sound right?
Any and all help is greatly appreciated,
Duncan