- Get subversion working with httpd first. (See http://muddyazian.blogspot.com/2013/05/how-to-start-subversion-repository-over.html)
- yum install viewvc viewvc-httpd
- Edit /etc/viewvc/viewvc.conf and modify the svn_roots and root_parents options.
- Edit /etc/httpd/conf/httpd.conf and add in the following:
<Directory /usr/lib/python2.7/site-packages/viewvc/bin/mod_python>
Order allow,deny
Allow from all
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Directory>
<Directory /usr/share/viewvc/templates/docroot>
Order allow,deny
Allow from all
</Directory>
Alias /viewvc-static "/usr/share/viewvc/templates/docroot/images"
...
ScriptAlias /viewvc /usr/lib/python2.7/site-packages/viewvc/bin/cgi/viewvc.cgi
ScriptAlias /query /usr/lib/python2.7/site-packages/viewvc/bin/cgi/query.cgi
- Restart the web server: /sbin/service httpd restart
- Go to http://localhost/viewvc
- If you haven't already done so, create the /etc/svn-auth-users file:
htpasswd -cm /etc/svn-auth-users firstUsername
New password:
Re-type new password:
Adding password for user firstUsername
/usr/lib/python2.7/site-packages/viewvc/bin/standalone.py -r /path/to/svn/repository/location
Then in firefox, go to http://localhost:49152/viewvc
No comments:
Post a Comment