an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Installation > Multiple servers
Last Post 6/5/2008 2:59:15 PM By lukezy. 9 replies.
6/4/2008 11:19:14 AM
Anonymous
Posts: 38
Joined: 6/18/2007
Multiple servers

I'm going to need to install this with 1 server for the web and a db server which is not accessable via the web...

"You must not store cardholder data on a server accessible from the Internet in order to
remain compliant with the DSS. For example, you should not have your database and
web server on the same machine."

Do I need to run instdsc on both machines?

6/4/2008 12:21:48 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Multiple servers

You still run InstDSC from the web server. Just pass the correct server name to InstDSC. Make sure you have the permission to create DB and SQL client software installed on web server.

InstDSC.exe <database server name> <database name> <database data file path>
<encryption key path> [<smtp email server>] [<system email address>]

DotShoppingCart Staff
6/5/2008 9:33:02 AM
Voir
Posts: 4
Joined: 6/3/2008
Re: Multiple servers

Thank you, After running the command from the webserver:
D:\dsc\Install>instdsc dbserver dotshopping_staging \\dbserver\d$\mssql\data d:\key localhost noreply@r2pnetworks.com

the directory structure \\dbserver\d$\MSSQL\Data\FTData\dotshopping_staging is created but then it gives this error:


Creating database dbserver.dotshopping_staging at \\dbserver\d$\mssql\data ...
Running sqlcmd -E -S dbserver -v DatabaseName="dotshopping_staging"
PrimaryFilePhysicalName="\\dbserver\d$\mssql\data\dotshopping_staging.mdf"
PrimaryLogFilePhysicalName="\\dbserver\d$\mssql\data\dotshopping_staging_log.ldf"
DBDataPath="\\dbserver\d$\mssql\data" -i "D:\dsc\Install\CreateDB.sql" -b</span>

Unhandled Exception: System.ComponentModel.Win32Exception:
The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startIn
fo)
   at System.Diagnostics.Process.Start()
   at DotShoppingCart.OpenSource.Core.RunCmd.RunProcess(String filename, String
arguments) in D:\sites\OpenSourceEdition\Core\RunCmd.cs:line 44
   at DotShoppingCart.OpenSource.Core.DBDeployment.CreateDSCDatabase(String serv
er, String dbName, String path, Boolean outputToConsole) in D:\sites\OpenSourceE
dition\Core\DBDeployment.cs:line 35
   at InstDSC.InstDSC.CreateDB() in D:\sites\OpenSourceEdition\InstDSC\Program.c
s:line 94
   at InstDSC.InstDSC.Install() in D:\sites\OpenSourceEdition\InstDSC\Program.cs
:line 86
   at InstDSC.InstDSC.Main(String[] args) in D:\sites\OpenSourceEdition\InstDSC\
Program.cs:line 81</span>

Any tips?

 

6/5/2008 9:43:22 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Multiple servers

Try using the local path d:\mssql\data instead of \\dbserver\d$\mssql\data.

DotShoppingCart Staff
6/5/2008 10:08:22 AM
Voir
Posts: 4
Joined: 6/3/2008
Re: Multiple servers

Still "no joy" I get the error but the data directory is  now on the web server rather than the sql server

6/5/2008 10:18:09 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Multiple servers

Is it a different error message? If so, could you please post the exception stack?

DotShoppingCart Staff
6/5/2008 10:47:58 AM
Voir
Posts: 4
Joined: 6/3/2008
Re: Multiple servers

It's the same message, I'm going to try creating InstDsc_DB with just createDB() and instDsc_web with everything else ... or maybe just add switches /justdb and /justweb

6/5/2008 10:57:11 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Multiple servers

You could use that as a workaround. Alternatively you could create local DB first and then move it to the production server.

Ultimately we want to fix InstDSC to work with this scenario.

DotShoppingCart Staff
6/5/2008 2:47:59 PM
Voir
Posts: 4
Joined: 6/3/2008
Re: Multiple servers

Cool! I'm up and running after adding a parameter to the instdsc, Thank you! :)

6/5/2008 2:59:15 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Multiple servers

Cheers. Don't forget to post your site here when your site is live. We are trying to set up a reference list.

DotShoppingCart Staff