由于权限问题,Orchard 无法访问文件
我最近创建了一个 Orchard-CMS 网站。这是一个使用 ASP.NET MVC 3 的新 CMS。http://www.orchardproject.net 您可以找到更多信息信息。
安装主题必须非常容易。但每次我尝试这样做时,都会收到依赖项.xml 文件不可访问的错误。 (Orchard 需要 dependency.xml 文件,以写入新主题和模块的链接)
我的站点在 IIS7 本地计算机上运行,我向 ASP.NET 用户和网络用户授予了所有权限。但我仍然有许可问题,有什么想法吗?
I recently started an Orchard-CMS website. That's a new CMS which uses ASP.NET MVC 3. http://www.orchardproject.net you can find more info.
It has to be really easy to install a theme. But everytime i try that, i get the error that the dependencies.xml file is not accessable. (Orchard needs the dependencies.xml file, to write the links to new theme's and modules)
My site is running on an IIS7 local machine and i granted all permissions to the ASP.NET user and the NETWORK USER. But i still have permission-problems, any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,IIS 7 应用程序池在 IUSR 帐户下运行,因此您应该授予此用户适当的权限。从安全角度来看,最好为每个应用程序池创建一个新的单独帐户,我建议您这样做。它还将为您提供更细粒度的控制。
另外,检查权限更改是否正确传播到 App_Data 和 App_Data/Dependencies 文件夹及其内容。如果不是,请显式更改“依赖项”文件夹的权限。 我注意到,如果您在根级别更改权限,有时它们不会正确传播。
By default the IIS 7 application pools run under IUSR account, so you should grant this user the appropriate permissions. From security perspective it's good to create a new, separate account for each application pool and I'd advise you to do so. It'll also give you more fine-grained control.
Also, check whether the permission changes were correctly propagated to App_Data and App_Data/Dependencies folder and their content. If not, change permissions for Dependencies folder explicitly. I've noticed that sometimes they don't get propagated correctly if you change permission at the root level.