This question about Installation of Foswiki: Answered

Moving a centos rpm installation

i have apache2 httpd and DocumentRoot is on a custom dir, with multiple virtual hosts and port combination pointing to different directories.

i used the foswiki custom installer for centos which i assume installs with all default parameters? so i'm just now looking for some guidance as how i should be edit the config to redirect / move / point to custom paths?

let's assume my DocumentRoot is /www, and i want to access foswiki at http://192.168.1.1/foswiki

anyone could enlighten me? thanks in advance!

-- JiaChen - 24 Nov 2014

If you are changing the install locations, then you should probably follow the regular InstallationGuide. You'll need to look at the Apache configuration, as well as your lib/LocalSite.cfg You could also use the ApacheConfigGenerator to build a config. (Note that our Apache configs we generate / supply, don't work with Apache 2.4. They need to be adjusted for the 2.4 syntax changes).

In LocalSite.cfg, the important file system path settings are: (These happen to be from my system)

$Foswiki::cfg{DataDir} = '/var/www/foswiki/distro/core/data';
$Foswiki::cfg{LocalesDir} = '/var/www/foswiki/distro/core/locale';
$Foswiki::cfg{PubDir} = '/var/www/foswiki/distro/core/pub';
$Foswiki::cfg{ScriptDir} = '/var/www/foswiki/distro/core/bin';
$Foswiki::cfg{TemplateDir} = '/var/www/foswiki/distro/core/templates';
$Foswiki::cfg{ToolsDir} = '/var/www/foswiki/distro/core/tools';
$Foswiki::cfg{WorkingDir} = '/var/www/foswiki/distro/core/working';

And the apache configuration: (I just searched for var using grep. So these are all the directories / files that need to be reviewed.

    DocumentRoot "/var/www/foswiki/distro/core"
ScriptAlias /foswiki/bin "/var/www/foswiki/distro/core/bin"
Alias /foswiki/pub "/var/www/foswiki/distro/core/pub"
Alias /foswiki "/var/www/foswiki/distro/core"
<Directory "/var/www/foswiki/distro/core">
<Directory "/var/www/foswiki/distro/core/bin">
    AuthUserFile "/var/www/foswiki/distro/core/data/.htpasswd"
<Directory "/var/www/foswiki/distro/core/pub">
<Directory "/var/www/foswiki/distro/core/pub/Trash">
<Directory "/var/www/foswiki/distro/core/data">
<Directory "/var/www/foswiki/distro/core/templates">
<Directory "/var/www/foswiki/distro/core/lib">
<Directory "/var/www/foswiki/distro/core/locale">
<Directory "/var/www/foswiki/distro/core/tools">
<Directory "/var/www/foswiki/distro/core/working">

-- Main.GeorgeClark - 24 Nov 2014 - 23:48

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r3 - 25 Nov 2014, GeorgeClark - This page was cached on 17 Nov 2018 - 17:31.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy