Windows服务器上的Apache无法写入文件

时间:2021-06-02 20:18:54

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”身份运行,我们尝试为该用户提供对所有文件夹和文件的完全权限。此外,我们还为所有文件夹和文件提供了“Everyone”完全权限。我们重新启动了Apache,清除了所有cookie,重新启动了IE,我们仍然收到来自phpMyAdmin的消息,我们没有写入权限。

3 个解决方案

#1


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.

右键单击属性,“登录”选项卡应该告诉您它登录的对象。

#2


Have you tried giving the "Everyone"-group access to the files? Do not forget to reset this setting in production.

您是否尝试过“Everyone”组访问文件?不要忘记在生产中重置此设置。

To see which user apache runs under, use the task manager.

要查看运行哪个用户apache,请使用任务管理器。

#3


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及其运行的用户。您应该能够授予该用户写入权限。

#1


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.

右键单击属性,“登录”选项卡应该告诉您它登录的对象。

#2


Have you tried giving the "Everyone"-group access to the files? Do not forget to reset this setting in production.

您是否尝试过“Everyone”组访问文件?不要忘记在生产中重置此设置。

To see which user apache runs under, use the task manager.

要查看运行哪个用户apache,请使用任务管理器。

#3


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及其运行的用户。您应该能够授予该用户写入权限。