简体   繁体   中英

Apache on windows server can't write to file

We have installed Apache 2.2 on a windows server 2003.

We want to make apache able to write to files on the disk but we don't know as what user Apache works as.

How do we allow Apache to write to files on a 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.

Look in

Start --> Administrative Tools --> Services

in that list you should see the Apache Service (assuming you installed it as a service)

Right click properties, Log On tab should tell you who it's logged on as.

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.

It sounds like a permission problem for the user Apache is running under.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM