Manish 的个人资料Manish Agrawal照片日志列表 工具 帮助

日志


6月14日

How To: Install the Subversion HTTP Module/Server/Client on Windows

  1. Download the binaries

For Server machine:

Go to the Apache download page and download the version (apache_2.0.54-win32-x86-no_ssl.msi) of Apache web server. I tried downloading some latest versions also but faced few issues in installation, so I continued with version 2.0.54.

Go to the Svn1ClickSetup download page and download the latest version. As of the writing of this article it is 1.3.2.

 

For Client machine/s:

It will be sufficient to just install Tortoise SVN Client, it can be downloaded from TortoiseSVN Page. As of the writing of this article latest version was 1.3.4

  1. Set up Subversion on Server

Run the Svn1ClickSetup executable (Svn1ClickSetup-1.3.2.exe) downloaded in the previous step. All the installation locations mentioned in this article are assumed to be default locations.

 

Note: Svn1ClickSetup installs a Subversion service, if you don’t want to be running this service, open a command prompt, and run the following command:

 

svnservice -remove
  1. Set up TortoiseSVN on Client

Run the TortoiseSVN Setup executable (TortoiseSVN-1.3.4.6692-svn-1.3.2.msi) downloaded in the previous step.

Note: If you are working on VS.Net with Web Projects, it is recommended to select ASP.Net Hack on the Custom Setup step of the installation wizard. Although I have not explored consequences of not selecting it but it is hardly of any harm, as it not even takes 1 kb of your hard disk space.

  1. Install Apache

Run the Apache installer (apache_2.0.54-win32-x86-no_ssl.msi) that you downloaded. It is pretty simple to install.

Once the installation finishes, launch a web browser, and browse to http://localhost. If you see a test page from Apache, the server is installed correctly.

Note: If port 80 is already occupied, you will have to stop the Webserver on which it is running or you will have to stop that WebSite. As Apache installation wizard gives not enough options of setting port while installation.

Later you can change the default port (which I recommend) in the httpd.conf file located in C:\Program Files\Apache Group\Apache2\conf  folder.

You will have to make changes at two places, firstly search for word Listen and replace 80 with your desired port number for example 8181

 

Listen 8181

 

Secondly search for ServerName and replace :80 with your desired port number.

 

ServerName yourdomain.com:8181

You will have to restart Apache and now you can launch a web browser, and browse to http://localhost:8181/

 

Note: Now don’t forget to restart the Webserver or WebSite, which you mayhave stopped.

  1. Set Up HTTP Access

The first thing we need to do is make sure that Apache loads the WebDav modules. The Apache config file (httpd.conf) is located in the C:\Program Files\Apache Group\Apache2\ conf directory. Launch a text editor, and open the Apache config file. You will want to keep this file open for the rest of the installation.

 

Copy the Subversion HTTP modules:

Program Files\Subversion\bin\mod_dav_svn.so

Program Files\Subversion\bin\mod_authz_svn.so

into the Apache modules directory (Program Files\Apache Group\Apache2\Modules).

 

In the config file, look for a section of lines that all start with LoadModule. At the end of that section, add the following lines:

LoadModule dav_module modules/mod_dav.so

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

 

At this point, restart the Apache2 service (Control Panel > Administrative Tools > Services). You will probably want to keep the Services window open (we will be restarting Apache several more times). If it restarts with no errors, Apache is now loading the SVN module.

 

Back in the Apache config file, add the following to the end of the file:

<Location /repos>
  DAV svn
  SVNPath "C:\svnrepos"
</Location>

Restart Apache2 again. You can now access your repository via HTTP.

  1. Configuring Authentication

Νote: There are several different ways to configure authorization for Subversion, but in this article only basic authorization is mentioned. Basic authorization sends the passwords in near plain-text, so if you are concerned with password snooping, you will have to use a different authorization scheme.

 

Now, we can browse our repository via HTTP. Not only that, but we can also check-out, modify, and commit changes. However, none of these operations require any type of authorization. Not exactly what we want, especially if we are going to have multiple users.

 

To enable authorization, we need to tell Apache who the authorized users are. To do this, we give Apache a file with a list of the authorized users and their passwords. Apache makes this job easy by providing a utility to mange the user file, htpasswd.

 

Let’s go ahead and create our user file with the users Tom and Jerry. We are going to put our file in the Apache conf directory, so open a command prompt to that directory (C:\Program Files\Apache Group\Apache2\conf). Type the following command, and then enter a password for Tom.  

C:\Program Files\Apache Group\Apache2\bin\htpasswd -cm svn-auth-file Tom

Now type the following command to add Jerry to the file.  

C:\Program Files\Apache Group\Apache2\bin\htpasswd -m svn-auth-file Jerry

Note: There is difference between these two commands. The first command passes in the -c command, which tells htpasswd to create the file. The second time, the file already exists, so just   -m command is enough. The second command can be used to add additional users to the file. In the svn-auth-file entries for both Tom and Jerry can be seen.

 

Now that authorization file is created, some Apache configuration is also required. Go back to the Location tag that we added to the Apache config file. And add some more lines to it so that it looks like this

 

<Location /repos>
  DAV svn
  SVNPath "C:\svnrepos"
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile "C:\Program Files\Apache Group\Apache2\conf\svn-auth-file"
  Require valid-user
</Location>
 

After restarting Apache2 once again, browse to your repository again. This time, you will be prompted for a user name and password. Cool, we have authorization working. However, if you don’t want to be prompted for a user name unless modifying the repository, you are not quite finished yet.

 

Thankfully, only requiring authorization for modifications is really easy. All you have to do is add a couple more lines to the location tag so that it looks like this

 

<Location /repos>
  DAV svn
  SVNPath "C:\svnrepos"
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile "C:\Program Files\Apache Group\Apache2\conf\svn-auth-file"
  <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
  </LimitExcept>
</Location> 

One last restart of Apache2 and you now have the Subversion HTTP module installed, configured, and ready to control our revisions.

 

 

 

Reference: http://blog.briankohrs.com/2005/09/20/guide-to-installing-the-subverison-http-module-on-windows/#comments

I have modified Brian Kohr’s article as I felt it was missing few things. I hope it will be of help and will be taken in the right spirit.

评论 (2)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

没有名字发表:
http://www.battery-info.net/laptop-batteries/sony-pcga-bp1n.htm sony PCGA-BP1N battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp1u.htm sony PCGA-BP1U battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp2e.htm sony PCGA-BP2E battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp2nx.htm sony PCGA-BP2NX battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp2r.htm sony PCGA-BP2R battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp2s.htm sony PCGA-BP2S battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp2sa.htm sony PCGA-BP2SA battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp2t.htm sony PCGA-BP2T battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp2v.htm sony PCGA-BP2V battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp3t.htm sony PCGA-BP3T battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp4v.htm sony PCGA-BP4V battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp505.htm sony PCGA-BP505 battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp51.htm sony PCGA-BP51 battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp51a.htm sony PCGA-BP51A battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp51a_l.htm sony PCGA-BP51A/L battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp52.htm sony PCGA-BP52 battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp52a.htm sony PCGA-BP52A battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp52a_l.htm sony PCGA-BP52A/L battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp52auc.htm sony PCGA-BP52AUC battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp71.htm sony PCGA-BP71 battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bp71a.htm sony PCGA-BP71A battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bpz51.htm sony PCGA-BPZ51 battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bpz51a.htm sony PCGA-BPZ51A battery
http://www.battery-info.net/laptop-batteries/sony-pcga-bpz52.htm sony PCGA-BPZ52 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bpl1.htm sony VGP-BPL1 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bpl2.htm sony VGP-BPL2 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bpl4.htm sony VGP-BPL4 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bpl5a.htm sony VGP-BPL5A battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bps2.htm sony VGP-BPS2 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bps3.htm sony VGP-BPS3 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bps4.htm sony VGP-BPS4 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bps5.htm sony VGP-BPS5 battery
http://www.battery-info.net/laptop-batteries/sony-vgp-bps5a.htm sony VGP-BPS5A battery
8 月 12 日
没有名字发表:
http://www.batterylaptoppower.com/hp/dv8000.htm hp dv8000 battery,
http://www.batterylaptoppower.com/hp/dv8100.htm hp dv8100 battery,
http://www.batterylaptoppower.com/hp/dv8200.htm hp dv8200 battery,
http://www.batterylaptoppower.com/hp/dv8300.htm hp dv8300 battery,
http://www.batterylaptoppower.com/hp/dv1000.htm hp dv1000 battery,
http://www.batterylaptoppower.com/hp/dv4000.htm hp dv4000 battery,
http://www.batterylaptoppower.com/hp/nc8000.htm hp nc8000 battery,
http://www.batterylaptoppower.com/hp/nc6000.htm hp nc6000 battery,
http://www.batterylaptoppower.com/sony/pcga-bp2sa.htm sony pcga-bp2sa battery,
http://www.batterylaptoppower.com/sony/pcga-bp2s.htm sony pcga-bp2s battery,
http://www.batterylaptoppower.com/sony/pcga-bp2v.htm sony pcga-bp2v battery,
http://www.batterylaptoppower.com/sony/vgp-bps2a.htm sony vgp-bps2a battery,
http://www.batterylaptoppower.com/sony/vgp-bps2b.htm sony vgp-bps2b battery,
http://www.batterylaptoppower.com/sony/vgp-bps2b.htm sony vgp-bps2b battery,
http://www.batterylaptoppower.com/sony/vgp-bps2c.htm sony vgp-bps2c battery,
http://www.batterylaptoppower.com/sony/vgp-bpl2c.htm sony vgp-bpl2c battery,
http://www.batterylaptoppower.com/sony/vgp-bps2.htm sony vgp-bps2 battery,
http://www.batterylaptoppower.com/toshiba/pa3128u.htm toshiba pa3128u battery,
http://www.batterylaptoppower.com/toshiba/pa3191u.htm toshiba pa3191u battery,
http://www.batterylaptoppower.com/toshiba/pa3128u-grey.htm toshiba pa3128u grey battery,
http://www.batterylaptoppower.com/toshiba/pa3191u-grey.htm toshiba pa3191u grey battery,
http://www.batterylaptoppower.com/toshiba/pa3209u.htm toshiba pa3209u battery,
http://www.batterylaptoppower.com/toshiba/pa3399u-1bas.htm toshiba pa3399u-1bas battery,
http://www.batterylaptoppower.com/toshiba/pa3356u.htm toshiba pa3356u battery,
http://www.batterylaptoppower.com/toshiba/pa3356u-1bas.htm toshiba pa3356u-1bas battery,
http://www.batterylaptoppower.com/toshiba/pa3399u-1bas.htm toshiba pa3399u-1bas battery,
http://www.batterylaptoppower.com/toshiba/pa3395u-1brs.htm toshiba pa3395u-1brs battery,
http://www.batterylaptoppower.com/toshiba/pa3465u-1brs.htm toshiba pa3465u-1brs battery,
http://www.batteryfast.co.uk/toshiba/pa3399u-1bas.htm toshiba pa3399u-1bas battery,
http://www.batteryfast.co.uk/dell/inspiron-6400.htm dell inspiron 6400 battery,
http://www.batteryfast.co.uk/dell/1501.htm dell 1501 battery,
http://www.batteryfast.co.uk/dell/e1505.htm dell e1505 battery,
http://www.batteryfast.co.uk/gateway/m680.htm gateway m680 battery,
http://www.batteryfast.co.uk/dell/d820.htm dell d820 battery,
http://www.batteryfast.co.uk/sony/vgp-bps2a.htm sony vgp-bps2a battery,
http://www.batteryfast.co.uk/sony/vgp-bps2.htm sony vgp-bps2 battery,
http://www.batteryfast.co.uk/dell/d620.htm dell d620 battery,
http://www.batteryfast.co.uk/compaq/nc6000.htm compaq nc6000 battery,
http://www.batteryfast.co.uk/hp/dv4000.htm hp dv4000 battery,
http://www.batteryfast.co.uk/sony/vgp-bps2.htm sony vgp-bps2 battery,
http://www.batteryfast.co.uk/sony/vgp-bps2.htm sony vgp-bps2 battery,
http://www.batteryfast.co.uk/dell/inspiron-6400.htm dell inspiron 6400 battery,
http://www.batteryfast.co.uk/dell/1501.htm dell 1501 battery,
http://www.batteryfast.co.uk/dell/e1505.htm dell e1505 battery,
http://www.batteryfast.co.uk/sony/vgp-bps2.htm sony vgp-bps2 battery,
http://www.batteryfast.co.uk/sony/vgp-bps2.htm sony vgp-bps2 battery,
http://www.batteryfast.co.uk/dell/inspiron-6400.htm dell inspiron 6400 battery,
http://www.batteryfast.co.uk/toshiba/pa3420u.htm toshiba pa3420u battery,
http://www.batteryfast.co.uk/sony/vgp-bps2.htm sony vgp-bps2 battery,
http://www.batteryfast.com/dell/d820.htm dell d820 battery,

12 月 26 日

引用通告

此日志的引用通告 URL 是:
http://emanish.spaces.live.com/blog/cns!4B02CA80B81E5D0A!249.trak
引用此项的网络日志