I know it's a uncouth to reopen multi-year-old tickets but this is what I found during my googling so want to make it easier for those with the same issue in future.
Say the word and I'll delete and chuck up a new post.
hbdevelop1
Thank you for this, this was the only version i could get working that allowed all the wikis to be open at once.
Just a bit more detail for those finding this in future (took me a while to stumble through since i'm very new to this)
when unpacking the ‘Dokuwiki on-a-stick’ there will be: ‘dokuwiki’, ‘server’, and ‘run.cmd’
This version will have the following file structure:
Parent/Wiki1
Parent/Wiki2
Parent/server
Parent/run.cmd
Where wiki1
and wiki2
are renamed dokuwiki
instead of renaming the DokuWikiStick
folder.
Then have to make some edit:
for Parent/run.cmd
:
From:
if exist ..\dokuwiki\conf\local.php (
start http://localhost:8800/
) else (
start http://localhost:8800/install.php
)
To:
if exist ..\wiki1\conf\local.php (
start http://localhost:8800/
) else (
start http://localhost:8800/install.php
)
if exist ..\wiki2\conf\local.php (
start http://localhost:8080/
) else (
start http://localhost:8080/install.php
)
And then edit Parent/Server/conf/httpd.conf
from:
Listen 8800
ServerName microapache
ServerRoot .
DocumentRoot ./../wiki1
ServerAdmin webmaster@example.com
To:
Listen 8800
Listen 8080
<VirtualHost *:8800>
ServerName microapache
ServerRoot .
DocumentRoot ./../wiki1
ServerAdmin webmaster@example.com
</VirtualHost>
<VirtualHost *:8080>
ServerName microapache
ServerRoot .
DocumentRoot ./../wiki2
ServerAdmin webmaster@example.com
</VirtualHost>
Result:
This works (for me), both are accessible simultaneously
Now run.cmd launches both installers, and on subsequent runs launch both wikis .
http://localhost:8800/doku.php?id=start
> wiki1
http://localhost:8080/doku.php?id=start
> wiki2
michaelsy
The setup described in your comment is exactly what I want
“mysecond-dokuwiki and mythird-dokuwiki are subdirectories in the root directory of my (first) DokuWiki On-A-Stick instance. That's all.”
Using that description I tried the following:
Parent/MainWiki
Parent/MainWiki/SubWiki1
Parent/MainWiki/SubWiki2
each of these are a clean unzip of the ‘Dokuwiki on-a-stick instance’ with no configuration changes apart from first time running.
NB: no configuration other than the initial launch of each was performed, obviously that doesn’t sound right but i was at a loss for what to change.
Then try to run the top level run.cmd
:
Main> http://localhost:8800/doku.php?id=start
>works
Subwiki1> http://localhost:8800/SubWiki1/doku.php?id=start
> results in NotFound error
If you instead launch ‘run.cmd’ from within the relevant folder you’ll see the expected wiki.
Question: What configuration am I missing? I'm pretty out of my depth