Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rich Green 2246 posts 4008 karma points
    Apr 05, 2011 @ 14:22
    Rich Green
    1

    Remote automated install of Umbraco project

    Hi,
     
    We need to let our clients remotely set up an instance of a umbraco solution.
     
    Hopefully the install can go something like this:
    1. Client goes to http://setUpAnotherSite.com/setup.aspx
    2. Types in the site name and submits form (after secure login of course)
    3. This kicks off some process on our dedicated server that
      1. Creates a new SQL server database (we can’t use CE as we have legacy stored procs)
      2. Runs a db install script
      3. Creates a folder in wwwroot to reflect the site name entered above
      4. Copies the sites files (stored on server) to wwwroot/SiteName
      5. Sets up file permissions
      6. Adds the site to IIS
    Obviously, we’d rather not let the client have direct access to the server otherwise we could look to use the Web PIatform Installer, unless we can kick this off via a script?
     
    Anyone got any tips on what route to go down with this?
     
    Thanks

    Rich

     

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Apr 06, 2011 @ 15:41
    Chris Houston
    1

    Hi Rich,

    Would be pretty simple to implement, you can create a SQL script for the entire blank Umbraco database which you could turn into a stored proc that had a couple of parameters to allow you to change the DB name and to setup the DB user.

    Then you could script the copying of your site files from your "source" folder into a new root folder as you mentioned above, you can then script the directory permissions using something like SetACL ( mentioned on my blog.. but there are other ways as well ) and then finally you can then script the setup of the web.config file's DB settings.

    I don't have this out of the box to give you, but I think the above should be relatively easy to implement.

    Cheers,

    Chris

  • Rich Green 2246 posts 4008 karma points
    Apr 06, 2011 @ 17:42
    Rich Green
    0

    Hey Chris,

    Cheers for your reply.

    Looks simple enough in theory, though no idea how to script against IIS to create the new site.

    From twitter it seems a few have tried to achieve what I'm trying wihtout too much luck.

    Seems like Web PI might be the way forward as it would do everything, not sure if it can be kicked it off remotely though.

    Rich

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Apr 06, 2011 @ 17:48
    Chris Houston
    0

    Rich,

    My suggestion would be to just Google "script creating an IIS site"

    I just did and found lots of articles :)

    One on the Microsoft site related to IIS 6 (may work in IIS 7?! ):

    http://support.microsoft.com/kb/816568

    But there were a lot of other links that had other examples.

    Cheers,

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft