Umbraco 安装步骤 2 - “无法保存 web.config 文件” - IIS 权限?

发布于 2024-10-08 19:10:31 字数 433 浏览 0 评论 0原文

我已经(经过很多困难)成功完成了将 Umbraco CMS 安装到我的本地计算机上的第二步。当我尝试进入下一步时出现此错误:

“无法保存 web.config 文件。请手动修改连接字符串。访问路径 'c:\inetpub\wwwroot\Umbraco\umbraco1\web.config' 被拒绝。”

我尝试在 web.config 文件、umbraco1 文件夹和 Umbraco 文件夹上设置读写权限,但什么也没有,同样的错误。重启IIS,重启,还是没有变化。我已手动更改了它尝试更新的 web.config 应用程序密钥,但无法继续下一步。

显然有一些随机许可的事情我做得不正确,但我找不到它。稍微切线的是,当我尝试打开权限向导时,没有任何反应 - 这有什么原因吗?

我正在运行 IIS 6,如果这对任何人有帮助的话。

I've managed (after much difficulty) to get to the second step of the installation of Umbraco CMS onto my local machine. I'm getting this error when I try to move onto the next step:

"Could not save the web.config file. Please modify the connection string manually. Access to the path 'c:\inetpub\wwwroot\Umbraco\umbraco1\web.config' is denied."

I've tried setting Read and Write permissions on the web.config file, the umbraco1 folder AND the Umbraco folder, but nothing, same error. Restarted IIS, rebooted, still no change. I've manually changed the web.config app key which it's trying to update, but there's no way to proceed on to the next step.

There's obviously some random permission thing that I'm not doing properly, but I can't find it. On a slight tangent, when I try to open the Permissions wizard, nothing happens - any reason for this?

I'm running IIS 6, if that helps anyone.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平安喜乐 2024-10-15 19:10:31

这听起来像是权限。根据您配置 ASP.NET 的方式,工作进程标识或 IIS 站点匿名用户标识没有写入权限。

如果您的主 machine.config(位于 %systemroot%\Microsoft.NET\Framework\v2.0.50727\CONFIG 或本地 web.config 中)以下行:

<identity impersonate="true" />

这意味着请求将以站点匿名用户的身份运行

打开 IIS 管理器并打开默认网站的属性:
alt text

记下红色突出显示框中的用户名,确保该帐户对 c:\inetpub 具有修改权限\wwwroot\Umbraco 及其子文件夹和文件。

如果您的 machine.configweb.config 指定:

<identity impersonate="true" username="someuser" password="somepassword />

那么您需要确保 someuserc:\inetpub 具有写入权限\wwwroot\Umbraco 及其子文件夹和文件。

如果您没有看到这些配置条目,那么您的站点将以工作进程帐户的身份执行。这很可能是NETWORK SERVICE,但您可以通过在 IIS 管理器中打开该站点的属性并选择Home Directory 选项卡进行检查。在底部附近,您会看到应用程序池
alt text

记下此内容,然后导航到 IIS Manager LHS 的Application Pools 节点窗格。右键单击并打开上面提到的应用程序池的属性:
alt text

记下身份并授予该帐户对 Umbraco 文件夹及其子文件夹和文件的写入权限。

This sounds like permissions. Depending on how you've configured ASP.NET either the worker process identity or the IIS site anonymous user identity doesn't have write permissions.

If your master machine.config (in %systemroot%\Microsoft.NET\Framework\v2.0.50727\CONFIG or local web.config has the following line:

<identity impersonate="true" />

This means requests will run under the identity of the site anonymous user.

Open IIS Manager and open the properties for the Default Website:
alt text

Note the username in the red highlighted box, make sure this account has modify permissions on c:\inetpub\wwwroot\Umbraco and its child folders and files.

If your machine.config or web.config specifies:

<identity impersonate="true" username="someuser" password="somepassword />

Then you need to ensure that someuser has write permissions on c:\inetpub\wwwroot\Umbraco and its child folders and files.

If you don't see these configuration entries then your site will be executing under the identity of the worker process account. It's most likely this will be NETWORK SERVICE but you can check by opening the properties for the site in IIS Manager and selecting the Home Directory tab. Near the bottom you'll see Application Pool:
alt text

Make a note of this then navigate to the Application Pools node of the IIS Manager LHS pane. Right click and open the properties of the application pool noted above:
alt text

Note the identity and give that account write permissions to the Umbraco folder and its child folders and files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文