SID-00354: Moving Twiki installation from root to subfolder
| Status: |
Answered |
TWiki version: |
4.2.1 |
Perl version: |
5.2.9 |
| Category: |
CategoryInstallation |
Server OS: |
Linux |
Last update: |
2 years ago |
Is it possible to move a Twiki installation from the root of a site to a sub-folder with out any issues? Is there documentation on this?
--
LilContreras - 2009-06-05
Discussion and Answer
You can move TWiki anywhere you want on the file system. It is also possible to have multiple TWikis one one server. With the Apache configuration you determine two basic directories:
-
twiki/pub: Needs to be html doc root enabled
-
twiki/bin: Needs to be cgi-bin enabled
Once you make that change you need to reflect that in TWiki's configure script, such as matching up
{PubUrlPath} and
{PubDir}.
The
ApacheConfigGenerator comes in handy.
--
PeterThoeny - 2009-06-06
Hi.
Thanks for your help.
I don't have access to the http.conf. So once I've moved the /pub and /bin folder from the root to say "/wiki/pub" & "/wiki/bin/", then I open "LocalSite.cfg" from the /lib folder and change the {PubUrlPath} & {PubDir} to match the new folder structure. Do I need to change the {ScriptUrlPath} as well in this file?
Thanks!
--
LilContreras - 2009-06-30
{PubUrlPath} needs to patch the new
{PubDir} when moved.
{ScriptUrlPath} only needs to change if you moved the bin directory.
--
PeterThoeny - 2009-07-01
Hi,
In contrast to the original quesiton, I installed everything from scratch under a sub-folder, like:
www.domain.com/wiki
[this was via an installable application script on the web host (
GoDaddy)]
I have:
$TWiki::cfg{DefaultUrlHost} = 'http://www.domain.com/';
$TWiki::cfg{ScriptUrlPath} = '/wiki/bin';
$TWiki::cfg{PubUrlPath} = '/wiki/pub';
and in:
.htaccess at
http://www.domain.com/wiki, I have the line:
Redirect /wiki/index.html
http://www.domain.com/wiki/bin/view
but something is not working since I do not get images or stylesheets/ (skins) showing. Everything is in plain text.
Any help would be welcome
Thanks.
PS. What does the phrase 'needs to patch the new {PubDir}' when moved, mean?
Does it mean '{PubUrlPath} needs to be updated to match the value of {PubDir}'?
--
TonyMurray - 2009-10-01
Answer to own question after further investigation:
There was a conflict with .htaccess /RewriteEngine=On (Joomla installation in the root directory).
So added
RewriteEngine Off to .htaccess in the wiki subfolder
Also the line $TWiki::cfg{DefaultUrlHost} = 'http://www.domain.com/' should be without trailing slash.
--
TonyMurray - 2009-10-01
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.