Twiki is istalled in 'C:\Twiki'.
I configured apache with it's httpd.conf in the following way:
The LoadModule statements were activated
Alias /twiki/ "C:/twiki/"
ScriptAlias /twiki/bin/ "C:/twiki/bin/"
<Directory "C:/twiki/bin/">
AllowOverride None
Allow From All
Options ExecCGI
SetHandler cgi-script
</Directory>
Quick and Simple Windows Install Notes from a lesser animal These notes are additional to Svens - Im only a newbie at this and have never touched a Web Server before, so had to rely on some great help and encouragement from Sven and Peter to get my TWiki going .. Destructions a) go to the place where you installed perl b) locate the 'conf' folder and the httpd.conf file within it c) make a backup of this file BEFORE you edit it.. d) look for the section :-
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "E:/perl/htdocs"e) Since I installed TWiki at e:/twiki, this is what the 'DocumentRoot' Tag should read (if youre using Apache for other things as well, you'll have to figure out how to do this .... ), but for the meantime, f) comment out (using'#') the original DocumentRoot Tag, and Enter a Tag pointing to where you installed Twiki, so you could end up with :-
#DocumentRoot "E:/perl/htdocs" DocumentRoot "E:/twiki"g) Now track down through httpd.conf, till you find :-
# # This should be changed to whatever you set DocumentRoot to. # <Directory "E:/perl/htdocs">and following the same reasoning as (f), you should end up with :-
# <Directory "E:/perl/htdocs"> <Directory "E:/twiki">note that the brackets around the Directory Tags above are actually 'greater' and 'lesser' signs '<' and '>' , but I had to use '(' and ')' here because the Directory tags weren't displaying ...
< for the '<' symbol, which lets you use '>' unmodified.
$scriptUrlPath = "/bin" $pubUrlPath = "/pub"again, for rank amateurs like me, I always comment out the original lines before making such changes (it helps backtrack if it gets messed up, and if worse comes to worse, you did make a backup didn't you?) i) if the Apache is running, it will have to be stopped and restarted to make the above changes effective. j) if your Wiki is not functioning quite as expected (mine was sort-of working, but not displaying graphics), a look at perl\logs\error.log will often highlight things (this is how I found out I was pointing to the wrong place and any change I made to those paths in wikicfg.pm wasnt pointing to the correct spot.....) -- GarthLancaster - 30 May 2001
c:\apache or c:\Program Files\Apache.
c:\perl\cgi-bin, would normally refer to the Apache directory, e.g. c:\apache\cgi-bin. By the way, I'd recommend installing to c:\apache as this saves a lot of typing later!
I always copy any config file foo.conf to foo.conf.ori - this makes it easier to locate which config files I have changed at a later date. Installing Cygwin is recommended so you can run 'diff' on the .ori and new files.
I've just been setting up Apache on Windows for a non-TWiki project - the hardest thing to get right is the security, but at least by default Apache is fairly secure.
A useful command is apache -k restart - this tells the running Apache process to re-read the config. If it fails to accept the config, you will have to restart apache as normal via the Start menu.
-- RichardDonkin - 13 Aug 2001 Environment Variables This note certainly applies to TWiki and on Windows 98, and probably applies to other Win32 installations. When following the instructions in TWikiOnWindows for installing RCS, you are required to set up a number of environment variables to make it work:
<IfModule mod_env.c> PassEnv TEMP TMP RCSINIT RCSLOAD RCS_LF_ONLY TZ LOGNAME </IfModule>This can be placed anywhere outside of any other conditional statement. I placed mine after the mod_dir check for DirectoryIndex In Apache binary distribution 1.3.19 mod_env is bound in by default, however it may be worth checking this with a 'print $ENV{'TEMP'} statement in testenv. If this doesn't work (maybe you have ClearModuleList set) then try:
AddModule mod_env.cUp with the AddModule sections. Note: There there is no point in passing PATH through to the script, as TWiki 'Make(s) %ENV safer for CGI' in wiki::initialise. I have made an additional note about the use of PATH and LOGNAME in TWikiOnWindows -- AndyYelland - 17 Aug 2001
<IfModule mod_env.> SetEnv TZ GMT0BST SetEnv RCSINIT -x,v/ SetEnv TEMP e:/rcs/rcstemp SetEnv TMP e:/rcs/rcstemp SetEnv LOGNAME nobody SetEnv HOME e:/twiki </IfModule>I have not got NT 4 here to know whether the same applies, and have not tried running Apache in a console under 2000 with debugging prints to see what happens. -- AndyYelland - 21 Aug 2001
SetEnv HOME ... above. This avoid errors from Net::Config.pm
-- JohnTalintyre - 05 Sep 2001 setenv in the C shell).
I've fixed this in Andy's config above.
-- RichardDonkin - 29 Mar 2002
Another alternative to the outlines above is to use the TWikiUnixInstaller which now supports cygwin/apache.
-- MichaelSparks - 20 Jul 2003 | I | Attachment | History | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|---|
| |
WinNTSetup.pl | r2 r1 | manage | 3.3 K | 2001-12-07 - 14:22 | UnknownUser | |
| |
egrep.exe | manage | 80.0 K | 2001-06-02 - 13:34 | UnknownUser | ||
| |
fgrep.exe | manage | 80.0 K | 2001-06-02 - 13:34 | UnknownUser |