[root@pd920 ~]# rpm -q subversion subversion-1.4.2-1
[root@pd920 viewvc-1.0.3]# rpm -q python python-2.3.4-14.3
wget http://viewvc.tigris.org/files/documents/3330/48879/viewvc-1.1.10.tar.gz tar -zxvf viewvc-1.1.10.tar.gz cd viewvc-1.1.10 ./viewvc-install 採用預設值直接 Enter cd /usr/local/ ln -s viewvc-1.1.10 viewvc
vi /usr/local/viewvc/viewvc.conf
: #cvs_roots = cvs: /home/cvsroot : #svn_roots = trysoft: /var/www/svn/trysoft, servercfg: /var/www/svn/trysoft/servercfg : root_parents = /var/www/svn : svn : #default_root = trysoft : address = <a href="mailto:[email protected]">Trysoft-Admin</a> :
: authorizer = svnauthz : ##--------------------------------------------------------------------------- [authz-svnauthz] : authzfile = /data/svn/control :
vi /etc/httpd/conf.d/viewvc.conf
ScriptAlias /viewvc /usr/local/viewvc/bin/cgi/viewvc.cgi <Location "/viewvc"> AllowOverride None AuthUserFile /var/www/passwdfile AuthName "ViewVC Client Access" AuthType Basic require valid-user </Location>
service httpd restart
Hi 蔡兄, 我照您的方式安裝 viewvc /wiki/tech/viewvc 後來發現 SELinux 需要關閉或修改 CGI 路徑才可過, # chcon -R -t httpd_sys_script_exec_t <提供 CGI 服務的目錄> 給您參考,或許加入您的網頁中造福更多人,呵呵. Patrick 2009-11-04