2

Sitecore ソリューションをセットアップまたは移動するときは、正しいフォルダー パーミッションと IIS パーミッションをセットアップすることを覚えておく必要があります。

セクション 3.3.3.2 ~ 3.3.3.9 のようなものです: http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%205,-d-,3/Installation/EXE%20Installation.aspx

フォルダーのアクセス許可は通常、インストーラーを使用するときに設定されますが、Zip を使用する場合や既存のソリューションを移動する場合には設定されません。

次のガイド (Sitecore 6 用) を使用できます: http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%206/Installation.aspx

しかし、ステップ 3.5 から 3.6.5 を実行するのは面倒です。

これを多かれ少なかれ自動的に実行できるスクリプトまたはプログラムを作成した人はいますか?

それは非常に高く評価されます。

4

2 に答える 2

1

非本番インスタンスで遊んでいると仮定します。

非運用環境では、ASP.NET アカウントと匿名のインターネット ユーザー アカウントに Web サイトとデータ フォルダー、およびそのすべての子孫のフル コントロールを付与し、NETWORK SERVICE ユーザーに D:\Sitecore\ のフル コントロールを付与するのが一般的に最も簡単です。データベース フォルダー。

したがって(権限は再帰的に設定されます):

ASP.NET アカウント (IIS 7 の IUSR) & 匿名ユーザー: 完全な制御:

  • /Website
  • /Data

ネットワーク サービス (デフォルトの SQL Server アカウント): 完全な制御:

  • /Databases

または、 Caclsを使用して、コマンドラインからファイル/フォルダーへのアクセス許可を設定することもできます。

たとえば、次のステートメントを使用して、AdministratorユーザーにWriteANDDelete権限を付与できます。c:\file

icacls c:\file /grant Administrator:(D,WDAC)
于 2011-03-01T16:02:22.377 に答える
-1

このスクリプトを使用しています

Option Explicit

Dim fso, path

' get current directory
set fso = createobject("Scripting.FileSystemObject")
path = fso.GetFolder(".").Path

WScript.StdErr.WriteLine "Setting up rights"
WScript.StdOut.WriteLine "Path:" &  path

Dim appname

appname = InputBox("Name of the App Pool", , "AppPool")

If appname = "" Then
    Wscript.Quit
End If

Dim wsShell

Set wsShell = WScript.CreateObject ("WSCript.Shell")

'wsShell.run "icacls """+ path + """ /inheritance:r"
wsShell.run "icacls """+ path + """ /inheritance:e /grant ""IIS AppPool\" + appname + """:(RX)"
wsShell.run "icacls """+ path + "\App_Data"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\sitecore\shell"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\temp"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\upload"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"

set wsShell = Nothing
于 2012-10-09T13:32:54.523 に答える