Default windows user for Apache & PHP

陌路散爱 提交于 2019-12-07 17:23:09

问题


Looking at the processes running for Windows XP it appears that Apache (httpd.exe) runs under the SYSTEM user. but I can't figure out what User is used for running PHP scripts. It's a basic installation using Xampp.

I am trying to set the correct permissions on a directory (i.e "Modifiy") so that a php script can create a txt file and then write to it.

If I were using IIS it would be something like "IIS_USER". What would be the equivalent Apache User for Windows XP?


回答1:


PHP scripts are run as Apache when PHP is an Apache module, so that means SYSTEM for PHP as well.

The equivalent "apache user" question is a bit misleading: IIS_USER only exists because the installer for IIS creates that account. You could create a new user account with any name yourself and arrange for httpd to run as that user (be careful to give enough permissions).



来源:https://stackoverflow.com/questions/12245625/default-windows-user-for-apache-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!