Install and configure the version control environment of Apache + tortoisesvn in WINXP

Source: Internet
Author: User
Tags tortoisesvn

Transferred from:Http://www.341200.org/windows_xp_apache_tortoisesvn.html


1. Software preparation

1 to the Apache official website to download the apache_2.2.14-win32-x86-openssl-0.9.8k.msi installation package (Download Attachment can also be)
② To http://subversion.tigris.org/servlets/ProjectDocumentList? Folderid = 8100 page download
Setup-Subversion-1.6.6.msi installation package
Http://tortoisesvn.net/downloads to download TortoiseSVN-1.6.6.17493-win32-svn-1.6.6.msi,
 
2. Software Installation

① To install Apache, you can simply click Next. When setting domain and host, you can set localhost without your own domain name, and enter your own email by email.
The following two options
For all users, on port 80, as a service-recommended.
Only for current user, on port 8080, when started manually.

It means
Install for all usersProgramAnd shortcuts. Port 80 is recommended for service installation.
It is only for the current user to install programs and shortcuts, port 8080, start the apache service manually
Select the first port. Note that port 80 is not occupied, and port 8080 is occupied.
After Apache is installed, it is already running,
You can enter http: // localhost in the address bar of your browser to check whether the page appears.

It works!

If yes, it indicates that the installation is successful. If no, check for possible problems.
(Here I encountered a situation where the port number is occupied, So I modified the port number)

Open: C: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf \ httpd. conf

Find: Listen 80

To prevent the port from being occupied, I changed it to listen 8888.

Therefore, when accessing Apache, the path must follow the port: http: // localhost: 8888.

② Install Setup-Subversion-1.6.6.msi, this is simple, nothing special

The TortoiseSVN-1.6.6.17493-win32-svn-1.6.6.msi installation, simple, do not elaborate.

3 Configuration

Copy the following two files in the c: \ Program Files \ subversion \ bin \ directory:
Mod_authz_svn.so
Mod_dav_svn.so
Paste the post to c: \ Program Files \ Apache Software Foundation \ apache2.2 \ modules,

Then open the c: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf \ httpd. conf file.

Find


# Loadmodule dav_module modules/mod_dav.so
# Loadmodule dav_fs_module modules/mod_dav_fs.so

Remove the annotator #

Then add


Loadmodule dav_svn_module modules/mod_dav_svn.so
Loadmodule authz_svn_module modules/mod_authz_svn.so

Do not change the order at will. Other errors may occur.

After the module is loaded, set the SVN version library directory so that Apache can access different URLs, where to find the svn directory corresponding to this URL.
Add the following content to the httpd. conf file:

? View code SVN
1
2
3
4
5
6
7
8
9
10
11
12
13
<Location/SVN/myproject>
Dav SVN
Svnpath D:/svnroot/myproject
 
Authzsvnaccessfile D:/svnroot/myproject/CONF/access. auth
Satisfy any
Require valid-user
 
Authtype basic
Authname "Subversion repositories"
Authuserfile D:/svnroot/myproject/CONF/users. auth
Require valid-user
</Location>

The above uses the access. auth and users. Auth files, which are created later.

Create the svnroot folder in D: \, and then use the svnadmin command of SVN to create a data warehouse.

(Note: The Path D: \ svnroot \ myproject is case sensitive. If you are advised to be careful. Otherwise, you have to wait for a new operation !)

Svnadmin create d: \ svnroot \ myproject

If the operation is successful, nothing is output,

You can also create a data warehouse as follows:

Create the myproject folder under D: \ svnroot \ on the drive E, and create it through tortisesvn.

Right-click "myproject", select "tortisesvn", and select "create repository here" from the menu to create a data warehouse in this directory.
Under the created myproject folder, we will find several more folders and files, open the conf folder, and then use editplus (if editplus is not installed, you can open it with notepad or WordPad) and then open svnserve. in the conf file, find the following line # password-DB = passwd, and then remove the # above it, indicating that the myproject requires password verification. open the passwd file under the conf folder and open it in a text editor. Add the user and password we need under [users], for example


[Users]
Admin = Admin
Tom = 1, 123456

We started two users: Admin, admin, Tom, and 123456.

Save it as a passwd file.

Create another file named access. Auth. The file sets the access permission. The content is as follows:
[Myproject:/]
Admin = RW
[Myproject:/module1]
Tom = RW
Admin = RW

Rm indicates readable and writable. This indicates that admin has the permission to read and write all sub-directories under myproject, but Tom only has the permission to read and write the module1 directory under this project, the respective access permissions are further detailed.

In command line mode, go to the bin directory under the Apache installation directory and perform the following operations:


C: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin> htpasswd-CB users. Auth admin Admin

Automatically using MD5 format.
Adding password for user jam

C: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin>

Set a password for the admin user, create a file when creating the first user, and add the second user without creating a password. The specific command parameters are slightly different. Note that-CB


C: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin> htpasswd-B users. Auth Tom 123456

Automatically using MD5 format.
Adding password for user Tom

C: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin>

Copy and paste users. auth in the c: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin directory

D: \ svnroot \ myproject \ conf directory

Restart the apache service through http: // localhost: 8888/SVN/myproject/

Note: access without modifying the port number (http: // localhost/SVN/myproject /)

Access appears

Myproject-Revision 0 :/

Indicates that the configuration is successful, and the client tortisesvn is used together.

Now, deploy the first project:

Enter SVN import E: \ test \ file: // D:/svnroot/myproject/-m "test import" in the CMD command line"

Note:
1. (D: \ test \) is the project you want to deploy
2. (File: // D:/svnroot/myproject/) This is the repository path for creating version control.
-Do not write it as \. Otherwise, the Operation will fail. -

Finally:
Open URL: http: // localhost: 8888/SVN/myproject/

Note: access without modifying the port number (http: // localhost/SVN/myproject /)

Access will list the version information of your project

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.