Create a development environment with Apache and subversion in Windows XP

Source: Internet
Author: User
Tags tortoisesvn

1. Configure IIS in Windows XP
2 install visual studio.net 2003
3. Configure Apache 2.0
4. Configure subsersion
Download subversion1.2.3 from here

5. Let Apache identify the Subversion Repository
5.1 create the svn directory on drive C to store the svn Repository
5.2 open HTTD. conf5.3 of Apache and add the following configuration information at the bottom.

Dav SVN
Svnparentpath C:/SVN/# specify the root directory of the Repository # http://www.archivesat.com/CVS_developers_help/thread45479.htmpost which discuss why you need to specify/SVN/and not/SVN
# List Repositories
Svnlistparentpath on
# Our access control policy
Authzsvnaccessfile bin/apachesvnauth # authorization File
# Path of the policy file
Authtype basic # verification type
Authname "Subversion repository" # verification name
# Repository Domain Name
# Authuserfile bin/apachesvnpasswd # file for storing user passwords
Require valid-user # Only authorized users are allowed to log on

5.2 enter the htpasswd-C passwd JEC command under Apache \ bin in cmd to create a new password file and add the user JEC. if you add a new user, remove-C; otherwise, the current password file will be destroyed.
5.3 you will be prompted to enter the password twice for the user JEC
5.4 open the bin directory of Apache and copy libdb43.dll, mod_authz_svn.so, and mod_dav_svn.so in Subversion \ bin. Add them to conf \ httpd. conf.
Loadmodule dav_svn_module modules/mod_dav_svn.so
Loadmodule authz_svn_module modules/mod_authz_svn.so
5.5 create a policy file apachesvnauth under Apache \ bin. The following is an example of an authorization file.
[/] * = R [test1:/] user1 = RW user2 = [Test2:/] user1 = r user2 = RW
[/] * = R allows everyone to read the Repository
[Test1:/] user1 = RW user2 = repository test1 allows user1 to read and write, but user2 cannot read or write
[Test2:/] user1 = r user2 = RW user1 can read the repository Test2, and user2 has read and write permissions
5.6 restart Apache
5.7 now test SVN and Apache. Open the browser and enter the URL: http: // localhost: 81/SVN.
5.8 If the operation succeeds, you will be prompted to enter the user name and password to verify the permission.

6. Set tortoisesvn.
Tortoisesvn is a free Windows client SVN tool.

7. Use tortoisesvn to create Subversion

7.1 if you select create repsitory here, you will be asked to select the repository type. You can use repository data-stores to obtain the repository type. Then, the system prompts that the repository is created successfully.C: \ SVN \ respository \Directory and file
7.2 now we need to create the repository structure. it is strongly recommended that you read chapter creating a repository layout. it discusses whether we should store all projects in one warehouse or each project in a separate warehouse. for simplicity, we assume that a warehouse stores a project.
. Create a repos_structure folder under the c: \ SVN \ Folder. This folder contains a directory structure template to set a new repository.
. Create trunk, branches, and tags under repos_structure.
7. 5. Right-click repos_structure and choose tortoisesvn-> Import ....
7. 6. You will see an import window. Enter http: // localhost/SVN/myrepository
7. Then, the verification window appears. Enter the username and password to view the svn import log.
. Open http: // localhost/SVN/myrepository to view the imported directory structure.
Check if an error occurs. And whether the URL is correct. Created by jecray

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.