IIS或IIS_IUSRS permisions,以便PHP可以为WordPress写入文件 [英] IIS or IIS_IUSRS permisions so that PHP can write files for WordPress

查看:157
本文介绍了IIS或IIS_IUSRS permisions,以便PHP可以为WordPress写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure中的虚拟机(Windows Server 2012 Datacenter)上运行IIS 8。我使用Web Platform Installer 4.6 安装了WordPress 及其依赖项

I'm running IIS 8 on a virtual machine (Windows Server 2012 Datacenter) in Azure. I have installed WordPress and its dependencies using the Web Platform Installer 4.6

当WordPress需要从其管理控制台写入文件时,我遇到了麻烦。我已经将ftp详细信息添加到文件 C:\inetpub \wwwroot \ bloglog \ wp-config.php ,这样可以正常工作。但是,只要WordPress尝试从其管理网页编写文件,例如创建子主题或上传媒体,我就会收到错误(例如由于错误而无法上传或无法创建目标子主题目录。这可能是一个权限错误'。)

I have trouble when WordPress needs to write files from its admin console. I've added the ftp details to the file C:\inetpub\wwwroot\blog\wp-config.php and that works fine. But whenever WordPress tries to write a file from its management web page, for example to create a child theme or to upload media I got an error (e.g. 'failed to upload due to an error' or 'Target child theme directory cannot be created. This is probably a permission error'.)

我可以使用 EvilDr来解决这个问题添加IUSR帐户权限的想法。但我对此感到紧张,因为似乎 IUSR并且 它永远不应该被允许访问任何其他内容

I can fix this using EvilDr's idea of adding permissions to the IUSR account. But I am nervous about this since it seems that IUSR and should only have access to precisely what it needs; it should never be given access to anything else.

给IUSR读取修改,读取和放大执行,列出文件夹内容,读取和写入WordPress目录的权限 C:\inetpub \wwwroot \ blog 及其子文件夹获取WordPress的正确和最安全的方法在IIS 8上工作?

Is giving IUSR read Modify, Read & execute, List folder contents, Read, and Write permissions for the WordPress directory C:\inetpub\wwwroot\blog and its subfolders the correct and safest way to get WordPress working on IIS 8?

推荐答案

给予网络服务写入权限WordPress需要写入的文件夹应该可以解决问题。

Giving NETWORK SERVICE write permission to the folders that WordPress needs to write to should do the trick.

更新:网络服务还需要Read&执行,列出文件夹内容和读取权限。

UPDATE: NETWORK SERVICE will also need Read & execute, List folder contents and Read permissions.

编辑:
我以为我会添加文件/文件夹等......完整性:

Thought I'd add the file/folders etc.. for completeness:

/wp-config.php
/wp-content/       (recursively)

这篇关于IIS或IIS_IUSRS permisions,以便PHP可以为WordPress写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆