TWiki Installer For Windows
Caveats
If you are using
CygwinApache on Windows, use the
TWikiUnixInstaller. If you are not using that combination then no this does not exist - at least not for a
current version of TWiki.
MartinCleaver has been trying modify the Unix
TWikiUnixInstaller to work under windows.
MichaelSparks has moved Martin's suggestions and comments to here since
MichaelSparks, maintainer of the Unix installer is not supporting them. If you have problems with using
WindowsApache, (or you intend to experiment with
WindowsIIS) with the installer please don't contact Michael, write your comments here.
NB. My apologies to those who tried my shorter set of instructions before. They were incomplete because I had not removed a previous installation from my machine and this installation was interacting with the new one.
These instructions are a work in progress. Please report
your progress.
Using the Unix TWikiUnixInstaller To install Windows/Apache
I had some success using this to configure
WindowsApache instead of
CygwinApache. I've now tested this with view and edit and register and I made good progress!. Note that you still need a Cygwin for the one-off installation process, but I am trying to get
CygWin out of the runtime.
I plan to automate as many of these steps but for now these are likely to be in a separate script. This is because Michael has stated that my changes for
WindowsApache /
ActiveStatePerl are not welcome in the
TWikiUnixInstaller. (Indeed, he feels that he should have named the script
TWikiUnixInstallerUnix). I am sorry that he sees my actions as non-cooperative but this will not stop me from releasing patches for as long as it suits me.
- And nor should it. Everyone is entitled to produce patches as they see fit that suit their purposes. I'm not obliged to accept them just as noone is obliged to use code from me -- MichaelSparks - 25 Jul 2003
Deep breath:
- Install this patch that allows you to override the twiki.system-config file by putting it next to bootstrap.sh
- Run your modified bootstrap.sh file (the apache restart will fail)
- Do not accept the option to take BetterDefaults
- Modify your c:\program files\apache group\apache\conf\httpd.conf file:
- Replace the cygwin path to the drive from
- /cygwin/c/path-to-apache-include-config-file to
- "c:/path-to-apache-include-config-file"
- NB1: forward slashes are fine
- NB2: it must be in double quotes
- Edit the resulting include file:
- Cut out any *command* 1 not found messages at the beginning of the file
*command line*:1: invalid macro name
*command line*:1: invalid macro name
*command line*:1: invalid macro name
-
-
- I'll try and investigate these later, maybe.
- I think one of them is that if you use BetterDefaults the TWikiRegistration URL needs to say System/TWikiRegistration not TWiki/TWikiRegistration
- replace all cygwin style paths (/cygwin/c/path-to-whatever) to windows style paths ("c:/path-to-whatever"), forward slashes are fine, but enclose in double quotes
- Implement DataAndCodeTangling to undo the DataAndCodeSeparation
- Remove symlinks to system/data that reside in your alphaTIMESTAMP/twiki directory
- cd alphaTIMESTAMP/twiki
- rm bin data lib pub templates
- Move the directories back
- mv system/bin bin
- mv system/data data
- mv system/lib lib
- mv system/templates templates
- mv system/pub pub
- Gut the symlinks from the data, template and pub directories
- find . -type l -exec rm {} \;
- Implement DataAndCodeTangling
- cd alphaTIMESTAMP/twiki
- mkdir Daily
- twiki=`pwd`
- cd webs
- d=`pwd`
- for web in *; do cd $web; for dir in *; do echo `pwd` mv $dir $twiki/$dir/$web; done; cd $d; done
- rmdir *
- Note this last command should work because by now everything should be back in the "tangled" state
- Edit the path to the CygwinPerl executable to the ActiveStatePerl in the top of the testenv script:
- The scripts come pointing to #! /usr/local/bin/perl -w
- Change this to something like #! c:/perl/bin/perl -w
- You can automate this with a line like:
- perl -pi~ -e 's;#!/usr/bin/perl;#!c:/perl/bin/perl;' *[a-z]
- Make /etc/twiki
- mkdir c:\etc
- echo c:/...blah.../alphaTIMESTAMP/twiki > c:\etc\twiki
- Find your twiki.system-config file:
- alter the TWIKIBASELOCATION to use the c:/...blah.../alphaTIMESTAMP/twiki
- Alter those attributes not yet customisable
- safeenv:
- uncomment # $safeEnvPath = 'c:\YOUR_RCSPROGDIR\bin;c:\YOURWINDOWSDIR\system32';
- $safeEnvPath='d:\twikiUnixSupportFiles;c:\YOURWINDOWSDIR\system32''
- rcsDir:
- *you need to alter this despite the comment that that it is not for windows
- comment out $rcsDir = ..; # Unix, Linux and Cygwin
- $rcsDir ='c:\twikiUnixSupportFiles";
- lsCmd, egrepCmd, fgrepCmd
- replace the prefixes so they point to the support dir:
$lsCmd = 'c:\twikiUnixSupportFiles\ls.exe';
# Unix egrep command :
$egrepCmd = 'c:\twikiUnixSupportFiles\grep.exe -E';
# Unix fgrep command :
$fgrepCmd = 'c:\twikiUnixSupportFiles\grep.exe -F';
- Unzip the twikiUnixSupportFiles.zip into c:\twikiUnixSupportFiles
- Point your browser at http://localhost/twiki/bin/testenv
- Check that testenv Perl Version says Perl 5.6.x (ActiveState) i.e. ActiveStatePerl
- Check that testenv SERVER_SOFTWARE says Apache/1.3.x (Win32) i.e. WindowsApache
- Check for errors
- Report them here, not on TWikiUnixInstaller
- Rejoice at the idea of no more spending hours to configure twiki, an increased userbase and the possibility of enthusiasm in participating a beta program
- Thank MichaelSparks for the work he has done to date on making TWikiUnixInstaller a reality
--
MartinCleaver - 22 Jul 2003
--
MartinCleaver - 25 Jul 2003
Notes on a Windows friendly Installer:
If anyone gets around to making a Windows installer, the most accepted way of delivering packages seems to be to use the MS Windows installer (MSI) system. A
CPAN module (new version released 11 days ago) exists to build one:
--
MartinCleaver - 19 Apr 2003
Alternatively we could
stealborrow the Window executable making process from
AmphetaDesk:
--
MartinCleaver - 30 Apr 2003