Brendan Tompkins [MVP]

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Setting Up Vault 3.0 on WebHost4Life

A couple of weeks ago, I promised to create a step-by-step guide to setting up Vault on a WebHost4Life (WH4L).  I've been stalling on this basically because for me to do an accurate, detailed step-by-step guide, it will involve setting it up again, so that I can record each and every step.  Short of doing that, here's the general gist of what I did to get it setup.

Step 1

Run the install locally on my machine, using a local SQL instance.  Test it, create your users etc.

Step 2

Create a new database called “sgvault“ on your WH4L account, your username should be “sgvaultuser“ NOTE: If someone has previously created this database on your shared SQL Server, you may be out of luck.  Not sure this will work with a different DB Name. To do this, login to your WH4L control panel, and click on the “MS SQL“ link.

Step 3

Backup the “sgvalut” database on your local machine, you will need to restore this database on your WH4L SQL Server.  First you'll have to FTP the “sgvault” backup to your WebHost4Life account, follow the instructions on the MS SQL page on your WH4L account for doing a DB restore.

Step 4

Create a directory on your WH4L account called VaultService, FTP the contents of your local “VaultSevice“ directory created in step 1.  Should located on  c:\\inetpub\wwwroot\VaultService or something like that.

Step 5

Give the ASPNET Account WR permissions to the VaultService directory on your WH4L account (Do this under the “File Permission“ link.  You may be able to tighten security more, but this'll get you started.

Step 6

Create an IIS Application for the VaultService directory.  Click the “Set IIS Application“ link and follow the on screen directions.

Step 7

Edit the web.config file in the VaultService directory, making two changes:

    <add key="ConfigPath" value="c:\hosting\webhost4life\member\[WH4L ACCT NAME]\VaultService\Vault.config" />

    <add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='false'; Server=[YOUR DB IP]; Database=sgvault; User ID=sgvaultuser; password=[YOUR PASSWORD]" />

Note that you're using a clear text password here.  Vault uses a Machine hashed password if you're using the “pwd“ attribute for the line above.  Short of having someone at WH4L running a program to gen this, I had to go with clear text.

That's about it.  Launch your vault client and start controlling some source code!  It's been working great for me!

-Brendan


Posted 12-10-2004 10:11 AM by Brendan Tompkins
Filed under:

[Advertisement]

Comments

Jake Good wrote re: Setting Up Vault 3.0 on WebHost4Life
on 12-11-2004 2:13 PM
Thanks! I'll try it out.. fiddle with it.. and see if there's something I can add to it! :)
Jake Good wrote re: Setting Up Vault 3.0 on WebHost4Life
on 12-11-2004 2:14 PM
Also.. I'm pretty sure you can call it whatever else you want..

you can change the ConnectString key to default to another database if necessary...
Jake Good wrote re: Setting Up Vault 3.0 on WebHost4Life
on 12-11-2004 2:43 PM
You'll also want to edit the Vault.config file at the end to use the correct service URL...
Jake Good wrote re: Setting Up Vault 3.0 on WebHost4Life
on 12-11-2004 3:07 PM
The directions here are A.O.K. :) Plus I verified that you can name your DB whatever you want.. just make sure it's reflected in the config.

and if you're expecting to go to
http://[yourdomain.com]/VaultService to see something.. you'll get an Authorization Failed page...

head to
http://[yourdomain.com]/VaultService/VaultWeb/login.aspx
Brendan Tompkins wrote re: Setting Up Vault 3.0 on WebHost4Life
on 12-13-2004 1:45 AM
Jake, Thanks for the test! Glad to hear that it works!
JustinCollum wrote re: Setting Up Vault 3.0 on WebHost4Life
on 02-03-2005 3:20 PM
Thanks for posting this, it helped me out big time. I'd add that you should write down all your users/passwords as you go through the install process (since you end up with 3 of them, I got confused).
Lyle Dodge wrote re: Setting Up Vault 3.0 on WebHost4Life
on 10-31-2006 8:46 AM

I detailed the steps for webhost4life based on the starting steps here.  It includes all the config file changes for temp & logs, etc.

http://www.orangetoad.com/blog/PermaLink,guid,a06851a6-0ba4-489c-9219-2d993746bea8.aspx

Add a Comment

(required)  
(optional)
(required)  
Remember Me?