Installing ViewCVS on Windows for Microsoft IIS
Last updated 16 Jan 2004 for ViewCVS 1.0-dev for Windows Release 5.
ViewCVS or CVSWeb? ViewCVS has the following advantages:
- Doesn't require write access to the repository
- Annotate works when there is a LockDir specified
- cvsgraph support is built in
- Install CVSNT
- Add CVSNT to your path
c:\progra~1\cvsntwill work because it doesn't contain any spaces
- Install ActivePython
- Change your system PATH environment variable. Remove the trailing "dot" from the python directory; e.g.,
c:\python22\.=>c:\python22 - Install IIS (on NT4, via NT Option Pack 4) on the computer that has the raw CVS repository files. This machine is named
tigerin these instructions. You can use network shares, so the files don't necessarily have to reside on the IIS machine, but you will undoubtedly run into file access permissions hell. - These instructions assume that the IIS
wwwrootfolder is located atc:\inetpub\wwwroot. Change these instructions to match the actual path of yourwwwroot. - If you wish to allow anonymous access,
- Give the users
IUSR_andIWAM_"execute" permissions tocvs.exeand "read" permissions to the folders that it's contained in - Give the users
IUSR_andIWAM_"execute" permissions to the files you extracted in the previous step (e.g.,rcs.exe) and "read" permissions to the folders they are contained in - Give the users
IUSR_andIWAM_"full control" permissions toc:\winnt\temp - Give the users
IUSR_andIWAM_"read" and "list contents" for all files and folders in the CVS repository
- Give the users
- Download ViewCVS and extract it
- Go to the extract target directory and type
python viewcvs-install - Enter
c:/viewcvsas the install directory (use what you like) - Edit the
viewcvs.conffile in the installation directory. Change the following things:cvs_rootsdefault_rootrcs_path
- Create the directory
c:\inetpub\wwwroot\cgi-bin - From Windows Explorer, run Start/Programs/Administrative Tools/Internet Services Manager
- Right-click on the default web server icon
- Right click on
cgi-bin(to be compatible with TortoiseCVS, ViewCVS needs to be located here) - Choose New->Virtual Directory
- Alias:
viewcvs - Click Next
- Directory:
c:\viewcvs\www\cgi - Click Next
- Check the Execute checkbox
- Finish the dialog box
- Right-click on the virtual directory "viewcvs" and select Properties...

- Click the Documents tab
- Add
viewcvs.cgi - Click the Virtual Directory tab
- Click the Configuration... button
- If the CGI extension is already in the list, you must delete it. This will break an application that has been installed on your web server (e.g., CVSWeb).
- Click the Add button
- Fill in the following information
Executable:c:\python22\python.exe "%s"
Extension:cgi
Script Engine: checked
Check that file exists: unchecked - Copy
<extract directory>\windows\iconstoc:\inetpub\wwwroot\icons - If you like, save your company logo on top of the file
c:\inetpub\wwwroot\icons\apache_pb.gif - If you want to use cvsgraph with ViewCVS,
- Edit
viewcvs.confand setuse_cvsgraph=1 - Download windows binaries (go to the cvsgraph website) into a directory that's in your PATH
- Edit
- See the Enscript Instructions
- Fire up ViewCVS...
http://localhost/cgi-bin/viewcvs - See here if you want to control access to ViewCVS. Note that you must give all ViewCVS users "full" control over
c:\winnt\temp
本文提供了一份详细的指南,介绍如何在Windows环境下为Microsoft IIS安装ViewCVS。内容包括安装CVSNT、ActivePython及IIS的具体步骤,配置权限、安装ViewCVS并设置虚拟目录等过程。
93

被折叠的 条评论
为什么被折叠?



