This question about Installation of Foswiki: Answered

Need help with installing foswiki

Basically I'm just starting with the installation of Foswiki and I'm not understanding the step where you set the file and directory permissions for the installation. I am running Windows XP with Foswiki 1.1.3. It would help to have step by step instructions on how this is done. I read through the explanation on the support page, but did not quite understand.

Thanks

-- StuartKatz - 22 Jun 2011


I don't use Windows myself, but there are some instructions at FoswikiOnWindowsIISAndPerl which might help.

-- AndrewJones - 22 Jun 2011


On windows, you don't really need to do anything about file or directory permissions. We should mark that step as not applicable to windows.

IIRC, the only issue I've encountered with permissions is actually in the next step in the installation guide. And that step is definitely required on windows. Configure the locations of the Perl executable and the Foswiki modules

The utility script we provide - rewrite-shebang.pl - has been fixed, but the install instructions are wrong. Don't follow the instructions to cd into the bin directory. Here are some revised steps:
  • change to the tools directory cd \path\to\foswiki\tools
  • Run rewrite-shebang using perl -I ..\lib rewriteshebang.pl
On 1.1.3, this script will now automatically find the location of your perl script, and prompt to update the tools and bin directories. It will deal with permission issues encountered on windows. If your perl interpreter is not on the default path, you might need to use \path\to\perl.exe -I ..\lib rewriteshebang.pl

-- GeorgeClark - 22 Jun 2011

The InstallationGuide has been updated with the following:

(optional - required on Windows ) Configure the locations of the Perl executable and the Foswiki modules

If you are running on a Linux system with Perl found in /usr/bin/perl then this step is not required. This step is required on Windows installations.

The easiest way to fix up the bin scripts is to run the tools/rewriteshebang.pl script. If the Perl interpreter is in the default execution path, follow these steps:

cd /path/to/foswiki/tools
perl -I ../lib rewriteshebang.pl

or for Windows users:

cd C:\path\to\foswiki\tools
perl -I ..\lib  rewriteshebang.pl

The script will determine the location of the Perl interpreter and will prompt to update both the bin and tools scripts in a single step. The changed files will be reported, and it is safe to rerun the script.

If the perl command does not work from the command line, then you need to find the location of your system's Perl interpreter. Insert the path to Perl in the first line of the rewriteshebang script. For ex

cd C:\path\to\foswiki\tools
C:\path\to\perl -I ..\lib  rewriteshebang.pl

-- GeorgeClark - 22 Jun 2011

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.1.3
Status Answered
Topic revision: r3 - 22 Jun 2011, GeorgeClark
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