Apache 2.0.63 + SVN 1.4.2 Version Control Server

Source: Internet
Author: User
A version control server needs to be installed on the company's servers. Previously, VSS was used for version control. Let's talk about the installation steps. Refer to the step-by-step implementation on the Internet. The main steps are as follows:
1. Installation and download instructions
Apache Web Server: http://httpd.apache.org/download.cgi (apache2.0.x version, I use version 2.0.63; the new version in the Windows configuration file after modification to restart always appear error prompt! Mark it !) Subversion :( http://subversion.tigris.org/files/documents/15/35379/svn-1.4.2-setup.exe)
Tortoisesvn client tools (TortoiseSVN-1.4.1.7992-win32-svn-1.4.2.msi) http://tortoisesvn.net/downloads
2. Program Installation
(1) install apache2.0.63
To prevent Installation Problems, change the IIS port to 8080 before installation, and then follow the prompts to complete the installation.
Open http: // loccalhost. If the content appears, your Apache installation is successful.
Note: If you install Apache as a service, it runs as a local system account. It is safer to create a separate user for Apache to run it.
Make sure that the user running Apache has full access to the version Library (right-click the version library directory and choose Properties> Security ). Otherwise, users cannot submit their changes. Even if Apache runs on a local system, you must set it to fully read and write the version library directory. If this license is not configured for Apache, the user will get the error message "forbidden access", which is displayed as Error 500 in the Apache error log.
(2) run the Subversion Installer
If the installer can identify that you have installed Apache, then your installation is basically OK. If it is unavailable (my machine cannot identify it), you need to perform the following manual configuration: Note: If you install Apache before installing subversion, under normal circumstances (before configuration 2.3), the Subversion installer has already completed the work for you.
Use the resource manager To Go To The sibversion installation directory (usually c: \ Program Files \ subversion), find the files httpd/mod_dav_svn.so and mod_authz_svn.so, copy them to the modules directory of Apache (usually c: \ Program Files \ apache group \ apache2 \ modules ).
Copy the file libdb44.dll from the Subversion installation directory to the modules directory of Apache.
Use a text editor such as NotePad to edit Apache configuration files (usually c: \ Program Files \ apache group \ apache2 \ conf \ HTTD. conf), modify the following content: remove the comments of the following line (delete the # At the beginning): # loadmodule dav_fs_module modules/mod_dav_fs.so
# Loadmodule dav_module modules/mod_dav.so
Add the following two lines at the end of the loadmodule section:
Loadmodule dav_svn_module modules/mod_dav_svn.so loadmodule authz_svn_module modules/mod_authz_svn.so
Add the following lines at the end of the configuration file:
<Location/SVN> Dav SVN svnparentpath D: \ SVN
Authtype basic
Authname "Subversion repositories"
Authuserfile D: \ passwd
# Authzsvnaccessfile D: \ svnaccessfile require valid-user </location>
Configuration: all your version libraries will be located in the D: \ SVN directory. to access your version library, you can use the URL: http: // yourip/SVN /, the access permission is restricted by the user name/password in the passwd file.
Details: ------------------------------------------------------------------------------- <location/SVN> means you can access the Subversion repository through a URL like this (http: // myserver/SVN ).
Dav SVN tells apache which module is responsible for serving URLs like that-here it is the Subversion module svnlistparentpath on in Subversion 1.3 and later versions, this indicator enables subversion to list all version libraries in the directory specified by svnparentpath. svnparentpath D: \ SVN tells subversion in Directory D: \ search for version Libraries under SVN # (change to your own directory)
Authtype basic enables basic authentication, such as user name/Password
Authname "Subversion repositories" when a verification dialog box pops up, tell the user what the verification is.
Authuserfile D: \ passwd # (password file, not a folder) specify D: \ passwd as the password file to verify the user name and password authzsvnaccessfile D: \ svnaccessfile specify D: \ svnaccessfile: restrict the access permissions of each user or group in the version library directory. require valid-user: restrict the user to access this path only after entering the correct user name and password.
-----------------------------------------------------------------------------
Create a passwd file open the command line (DOS window cmd) and switch the current directory to The apache2 directory (usually c: \ Program Files \ apache group \ apache2 \ bin ),
Enter the command: htpasswd.exe-C passwd username automatically using MD5 format. new Password: ****** (enter the password) re-type new password: ******* adding password for user username copy passwd :\
(In httpd. conf, restart the apache service on d.
After the restart, enable http: // yourip/SVN/after entering the password, there is still an error (because no version library has been created) forbidden you don't have permission to access/SVN on this server.
-------------------------------------------------------------------------------- Apache/2.0.63 (win32) SVN/1.4.2 Dav/2 server at 192.168.18.8 port 80
(3) tortoisesvn
Follow the prompts to restart your computer.
3. SVN Project Settings
(1) Open the resource manager and create a WWW directory under the D: \ SVN directory.
(2) On the WWW folder, right-click tortoisesvn ---> Create repository here...
(You can also run the command to install the bin directory of SVN.
Run: svnadmin create d: \ SVN \ www
D: \ SVN directory needs to be created first, so there will be no error:
Svnadmin: An error occurred while creating the archive.
Svnadmin: unable to create the top-level directory
(3). Then select native filesystem (fsfs)
(4 ). in the project folder, right-click tortoisesvn --> Import... enter http: // yourip/SVN/WWW (5) in URL of repository ). project member, you can create an empty project folder on your machine. right-click SVN checkout...
In the prompt username and password dialog box, enter the username and password configured by the server. Then, click OK;
In the subsequent dialog box, the added files and directories are displayed one by one, and the last one is "completed at version 1 ".
If it succeeds, you can see the corresponding code file in the local directory. Select a file or directory to perform "SVN Update" (update version from the server) and "SVN commit" (submit changes to the server) operations.

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.