none
Some tips for quick deploy of WebsitePanel on a new Windows server RRS feed

  • General discussion

  • One of the more annoying things when deploying WebsitePanel on windows
    2008 is to prepare the FTP and the AWStats.

    As for the FTP, here is a small script (batch commands) to do the trick.

    echo ***********************
    echo Add WSPFtpUsers
    echo ***********************
    net localgroup WSPFtpUsers /add
    net localgroup WSPFtpUsers /comment:"WSP FTP Group"
    mkdir c:\inetpub\ftproot
    icacls c:\inetpub\ftproot /grant WSPFtpUsers:(RD)
    
    echo ***********************
    echo Create Default FTP Site
    echo ***********************
    cd %windir%\system32\inetsrv 
    set ftpsite=Default FTP Site
    set ftproot=c:\inetpub\wwwroot 
    appcmd add site /name:"%ftpsite%" /bindings:ftp://*:21 /physicalpath:"%ftproot%"
    appcmd set config -section:system.applicationHost/sites "/[name='%ftpsite%'].ftpServer.security.ssl.controlChannelPolicy:SslAllow" 
    appcmd set config -section:system.applicationHost/sites "/[name='%ftpsite%'].ftpServer.security.ssl.dataChannelPolicy:SslAllow" 
    appcmd set config -section:system.applicationHost/sites "/[name='%ftpsite%'].ftpServer.security.authentication.basicAuthentication.enabled:true"
    appcmd set config "%ftpsite%" /section:system.ftpserver/security/authorization /+[accessType='Allow',permissions='Read',roles='',users='WSPFtpUsers'] /commit:apphost 
    appcmd.exe set config  -section:system.applicationHost/sites "/[name='%ftpsite%'].ftpServer.userIsolation.mode:StartInUsersDirectory" /commit:apphost

    Enjoy



    Ofir Zvik CTO Evolution Online www.evolution.co.il


    Wednesday, March 7, 2012 5:27 PM