To create Subversion repository under the Apache Linux Platform follow the following steps :
1. create repository :
svnadmin create _PROJECT_
2. change permissions :
chown -R apache:apache _PROJECT_
3. create valid user and password :
htpasswd -cb secret_file _USER_ _PASSWORD_
4. add user to svnauth.conf :
vi svnauth.conf
Rough structure of the svnauth.conf file
[groups]
##NOTE THESE ARE THE ADMIN USERS YOU CREATED WITH THE HTPASSWD COMMAND
svn-admins = admin, brashr , _USER_
########################################################
## Repository: DEFAULT since this is the only repos thats using permissions
########################################################
[/]
@svn-admins = rw
* = r
5. edit subversion.conf in /etc/httpd/conf.d/ :
Add following code to subversion.conf
<Location /repo_url_path_to_access_svn>
DAV svn
SVNPath /file_path_to_repo
AuthType Basic
AuthName "SVN authorization for Project"
AuthUserFile /file_path_to_secret_file
AuthzSVNAccessFile /file_path_to_svnauthz.conf
Require valid-user
</Location>
6. Restart Apache :
/etc/init.d/httpd restart