【问题标题】:Access to the path 'C:\inetpub\wwwroot\App_Data\TEMP\PluginCache' is denied. Amazon AWS Beanstalk拒绝访问路径“C:\inetpub\wwwroot\App_Data\TEMP\PluginCache”。亚马逊 AWS 豆茎
【发布时间】:2019-04-28 22:10:33
【问题描述】:

我正在尝试使用 AWS Toolkit for Visual Studio 2017 在 Amazon AWS Beanstalk 上设置 Umbraco 网站,我已在我的配置文件中添加了 .ebextensions 文件夹

{
"containercommands": {
"01-changeperm": {
"command": "icacls \"C:/inetpub/wwwroot/App_Data\" /grant IIS_IUSRS:(OI)(CI)"
}
}
}

我也尝试过 DefaultAppPool 而不是 IIS_IUSRS 根据这篇文章How can I set folder permissions for elastic beanstalk windows application? 我也尝试过

commands:
  create_default_website_folder:
    command: if not exist "C:\inetpub\wwwroot" mkdir "C:\inetpub\wwwroot"
  update_iis_user_permissions:
    command: Icacls.exe "C:\inetpub\wwwroot" /grant IIS_IUSRS:(OI)(CI)F

来自这个帖子https://aws.amazon.com/blogs/devops/run-umbraco-cms-with-flexible-load-balancing-on-aws/ 以及许多其他帖子,但都没有工作,有没有人知道我还需要做什么,因为我经常收到以下错误。

对路径 'C:\inetpub\wwwroot\App_Data\TEMP\PluginCache' 的访问是 拒绝。

【问题讨论】:

标签: asp.net-mvc amazon-web-services umbraco7 amazon-elastic-beanstalk


【解决方案1】:

您可以访问此页面以查看 Umbraco 需要什么:https://our.umbraco.com/documentation/Getting-Started/Setup/Server-Setup/permissions

基本上所有这些都需要修改 umbraco 安装中所有文件夹的权限:

  • IUSR
  • IIS_IUSRS
  • IIS 应用程序池\[应用程序池名称]

【讨论】:

    【解决方案2】:

    哇!你的帖子对我很有帮助(还有https://thedeveloperspace.com/granting-write-access-to-asp-net-apps-hosted-on-aws-beanstalk/ 和ASP.Net Core at AWS EBS - write permissions and .ebextensions)

    在我的场景中,我的临时文件的本地文件夹位于

    C:\inetpub\wwwroot\Temp

    所以我将您的命令重新编辑为

    commands:
      create_default_website_folder:
        command: if not exist "C:\inetpub\wwwroot\Temp" mkdir "C:\inetpub\wwwroot\Temp"
    container_commands:
      01storage_permissions:
        command: "icacls C:\\inetpub\\wwwroot\\Temp /grant DefaultAppPool:(OI)(CI)F"
    

    感谢 mkdir 命令,我有权使用我的目标文件夹。

    因为您对路径“C:\inetpub\wwwroot\App_Data\TEMP\PluginCache”的访问被拒绝。 可能您的配置必须是这样的特定文件夹?

    commands:
      create_default_website_folder:
        command: if not exist "C:\inetpub\wwwroot\App_Data\TEMP\PluginCache" mkdir "C:\inetpub\wwwroot\App_Data\TEMP\PluginCache"
      update_iis_user_permissions:
        command: Icacls.exe "C:\inetpub\wwwroot\App_Data\TEMP\PluginCache" /grant IIS_IUSRS:(OI)(CI)F
    

    【讨论】:

      猜你喜欢
      • 2012-05-02
      • 1970-01-01
      • 2023-04-10
      • 1970-01-01
      • 2018-12-21
      • 1970-01-01
      • 2015-08-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多