---
title: "How to setup SVN server"
author: "OuYangGod"
date: "2012-04-16T10:23:11Z"
tags: ["SVN", "subversion"]
categories: ["研发管理"]
slug: "how-to-setup-svn-server"
draft: false
lastmod: "2012-04-16T18:13:22Z"
id: 1487302
url: "https://ouyanggod.iteye.com/blog/1487302"
---

\[size=x-large]1. Create SVN server\[/size] \[code="shell"]svnadmin create path svn import project file:///path\[/code] \[size=x-large]2. Make SVN server accessible via http\[/size] File: httpd.conf \[code="txt"]LoadModule dav\_svn\_module libexec/apache2/mod\_dav\_svn.so LoadModule authz\_svn\_module libexec/apache2/mod\_authz\_svn.so LoadModule autoindex\_module libexec/apache2/mod\_autoindex.so DAV svn #SVNPath /Users/ouyang/repository123 SVNParentPath /Users/ouyang AuthzSVNAccessFile /etc/apache2/svn-authz-file AuthType Basic AuthName "Subversion repository" AuthUserFile /etc/apache2/svn-auth-file Require valid-user \[/code] \[size=x-large]3. Security Management\[/size] Create svn-auth-file file \[code="shell"]$ htpasswd -cm /etc/apache2/svn-auth-file zhouyumiao $ htpasswd -m /etc/apache2/svn-auth-file youwenwu\[/code] svn-authz-file file \[code="txt"] \[/] \*=r \[repository123:/] zhouyumiao=rw youwenwu=rw\[/code]