apache Windows服务器上的Apache无法写入文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/688962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Apache on windows server can't write to file
提问by Zooking
We have installed Apache 2.2 on a windows server 2003.
我们已经在 windows server 2003 上安装了 Apache 2.2。
We want to make apache able to write to files on the disk but we don't know as what user Apache works as.
我们想让 apache 能够写入磁盘上的文件,但我们不知道 Apache 以什么用户身份工作。
How do we allow Apache to write to files on a Windows server 2003?
我们如何允许 Apache 写入 Windows Server 2003 上的文件?
UPDATE: The user is running as 'SYSTEM' and we have tried giving that user full permission to all folders and files. Also we have given 'Everyone' full permission to all folders and files. We have restarted Apache, cleared all cookies, restarted IE and still we get a message, from phpMyAdmin, that we don't have write permission.
更新:用户以“SYSTEM”身份运行,我们已尝试授予该用户对所有文件夹和文件的完全权限。此外,我们已授予“所有人”对所有文件夹和文件的完全权限。我们重新启动了 Apache,清除了所有 cookie,重新启动了 IE,但我们仍然从 phpMyAdmin 收到一条消息,我们没有写入权限。
采纳答案by danswain
Look in
在看
Start --> Administrative Tools --> Services
开始 --> 管理工具 --> 服务
in that list you should see the Apache Service (assuming you installed it as a service)
在该列表中,您应该看到 Apache 服务(假设您将其安装为服务)
Right click properties, Log On tab should tell you who it's logged on as.
右键单击属性,登录选项卡应该会告诉您它以谁的身份登录。
回答by Marcel
It sounds like a permission problem for the user Apache is running under.
这听起来像是运行 Apache 的用户的权限问题。
If you check the running processes, you should see Apache and the user it is running under. You should be able to give that user write permission.
如果您检查正在运行的进程,您应该会看到 Apache 及其运行的用户。您应该能够授予该用户写入权限。
回答by alexn
Have you tried giving the "Everyone"-group access to the files? Do not forget to reset this setting in production.
您是否尝试过授予“所有人”组访问文件的权限?不要忘记在生产中重置此设置。
To see which user apache runs under, use the task manager.
要查看 apache 在哪个用户下运行,请使用任务管理器。

