默认的Windows用户的Apache和放大器; PHP [英] Default windows user for Apache & PHP

查看:154
本文介绍了默认的Windows用户的Apache和放大器; PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看着似乎阿帕奇(httpd.exe)SYSTEM用户下运行的Windows XP上运行的进程。但我想不出是做什么用的用户运行PHP脚本。这是上使用Xampp时基本安装。

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.

我想设置一个目录(即Modifiy),正确的权限,使PHP脚本可以创建一个txt文件,然后写它。

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.

如果我用IIS它会像IIS_USER。什么是等价的 Apache用户作为的Windows XP

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

推荐答案

PHP脚本运行像Apache当PHP是一个Apache模块,这样对于PHP意味着体制。

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

相当于apache用户的问题是有点误导:IIS_USER只存在,因为IIS安装程序会创建该帐户。你可以创建一个新的用户帐户使用任何名称自己和安排的httpd 来作为该用户(注意给予足够的权限)运行。

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).

这篇关于默认的Windows用户的Apache和放大器; PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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