VisualSVN server Greening Policy to get rid of the embarrassment of two apache

Source: Internet
Author: User
Tags builtin xml parser tortoisesvn

Update! As many of my friends need to package the green version, I have uploaded it to the nano disk for sharing. You can click the following link to download it.

[Nano disk] green version of VisualSVN Server.7z

Use winrar to decompress the compressed file in 7z format.
SVN is easy to use! Installation is also very simple. My development environment is WINDOWS, and the solution is visual SVN
Server and TortoiseSVN. This installation is very convenient! However, one very serious problem is the official VisualSVN prepare process, which increases the memory overhead by dozens of MB. You need to know that even the sub-host is actually very slow, my idea is to integrate them together, because visualSVN
The MMC console of the server is so friendly that you can't do without it, even though SVN already has more powerful command line operations! There are two worker httpd.exe processes, and the port only listens to 8080.

The practice on the Internet is to first install visual SVN and then reconfigure apache. I think this built-in Lite version of apache is absolutely incomplete, so I installed SVN in my original APM environment, and then installed visualSVN SERVER to manage it! The objective is to reduce memory overhead and port usage.

The installation of SVN is not mentioned much. The official installation tutorials are very detailed! Here I am using the latest svn-win32-1.4.6.zip
The greennet visualSVN SERVER
Extract all files in the official installation package of the visual svn server. After analysis, we get the following valuable registry files and files in the bin directory (note that I have updated some files to svn 1.4.6 )!

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER \ Software \ VisualSVN]

[HKEY_CURRENT_USER \ Software \ VisualSVN Server]
"MenuShortcut" = "1 ″
"Adm_Tools_MenuShortcut" = "1 ″

[HKEY_LOCAL_MACHINE \ SOFTWARE \ VisualSVN]

[HKEY_LOCAL_MACHINE \ SOFTWARE \ VisualSVN Server]
"RepositoriesRoot" = "F: \ Repositories \\"
"ServerName" = "localhost"
"ServerPort" = "8080 ″
"SSLServerPort" = "8443 ″
"UseSSL" = "0 ″
"InstallDir" = "D: \ myserver \ VisualSVN Server \\"

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MMC \ SnapIns \ {08B017E8-47AD-4D1B-A928-94FFD77E9950}]
About = {2FC11162-83EE-47ED-87DA-490D7402230C}

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MMC \ SnapIns \ {08B017E8-47AD-4D1B-A928-94FFD77E9950}]
NameString = VisualSVN Server Manager

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MMC \ SnapIns \ {08B017E8-47AD-4D1B-A928-94FFD77E9950} \ Extension]
@ = Namespace

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MMC \ NodeTypes \ {476E6449-AAFF-11D0-B944-00C04FD8D5B0} \ Extensions \ Namespace]
{08B017E8-47AD-4D1B-A928-94FFD77E9950} = VisualSVN Server

The settings are clear at a glance, with the focus being on the HKEY_LOCAL_MACHINE \ SOFTWARE \ VisualSVN Server keys. You do not need to modify any other settings !, Then register the dll file regsvr32/s Manager. dll. The bin directory does not exist and the file deployment becomes like this:

D: \ myserver \ VisualSVN Server Directory

<DIR>.
<DIR> ..
131,149 libapr-1.dll
36,952 libapriconv-1.dll
172,118 libaprutil-1.dll
1,073,152 libeay32.dll
274,432 libhttpd. dll
1,869 Microsoft. VC80.CRT. manifest
479,232 msvcm80.dll
2006-12-02 548,864 msvcp80.dll
2006-12-02 626,688 msvcr80.dll
204,800 ssleay32.dll
28,871 visualsvn server. MSC
60,416 zlib1.dll
2,064 visualsvn. Reg
578 setup. bat
69,716 intl3_svn.dll
802,816 libdb44.dll
1,019,980 svn.exe
528,470 svnadmin.exe
499,808 svndumpfilter.exe
520,276 svnlook.exe
561,238 svnserve.exe
712,788 svnsync.exe
368,730 svnversion.exe
23 uninstall. bat
311-12-23 vsvnvars. bat
491,520 Manager. dll
26 files, 9,216,861 bytes
2 directories, 9,841,033,216 available bytes


The path corresponds to the preceding registry file. After these operations, you can use the visual svn server smoothly. However, the apache SERVER control menu in the console cannot be used normally, the solution is to use the name VisualSVNServer when registering apache as a service. The statement example is as follows:

D: \ myserver \ Apache2 \ bin \ httpd.exe-k install-n VisualSVNServer

In this way, you can re-open the visual svn server console to control the start, stop, and restart of apache.

By the way, when TortoiseSVN is used to connect to the server for a long time, and apache error logs contain the following:

[Sat Dec 22 15:49:30 2007] [error] [client 127.0.0.1] XML parser error (at end). status = 20014

The problem with such an error record is that the tortoiseproc.exe file under the bindirectory of tortoisesvnis is added to the Kabbah Trust program at Kaspersky 6.0 to solve the problem. I encountered this very depressing problem and it took only half a day to complete it.

Finally, attach the httpd. conf file of my apache2.2.6 (in fact, it is the solution for installing svn into apache, which is beyond the scope of this article, hehe ~) :

ThreadsPerChild 250
MaxRequestsPerChild 0

ServerRoot "D:/myserver/Apache2 ″

Listen 8080.

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so

LoadModule cgi_module modules/mod_cgi.so
############### Enable the following four items for SVN #
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
####################################
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so
######## Load PHP
LoadModule php5_module ../php5/php5apache2_2.dll
LoadFile ../php5/php5ts. dll
LoadFile ../php5/libmysql. dll

ServerAdmin godson@google.com
ServerName: 8080
DocumentRoot "D:/myserver/wwwroot"

Options FollowSymLinks
AllowOverride None
Order deny, allow
Deny from all
Satisfy all


Options Indexes FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all

DirectoryIndex index.htm index. php index.html


Order allow, deny
Deny from all

LogLevel warn

AllowOverride None
Options None
Order allow, deny
Allow from all

DefaultType text/plain


TypesConfig conf/mime. types
AddType application/x-compress. Z
AddType application/x-gzip. gz. tgz
AddType application/x-httpd-php. php

AddType application/x-x509-ca-cert. crt
AddType applications/x-pkcs7-crl. crl


SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

### Add for SVN #############

DAV svn

SVNListParentPath on
Svnparentpath F: \ Repositories
Svnindexxslt "/svnindex. XSL"
Authtype basic
Authname "subversion Repositories"
Authuserfile F: \ repositories \ htpasswd
# Authzsvnaccessfile svnaccessfile
Require valid-user

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.