[英]How can I change the PHP current script owner
The Scenario: I am currently running PHP 5.5.30 on Apache 2.0 which is installed on a Windows 7 server. 方案:我当前在Windows 7服务器上安装的Apache 2.0上运行PHP 5.5.30。 The PHP current script owner is SYSTEM
which of course has local powers but does not have access to network drives and so I am receiving the following message: PHP当前的脚本所有者是SYSTEM
,它当然具有本地权限,但是无法访问网络驱动器,因此我收到以下消息:
scandir(\\\MyFolder,\\MyDrive\MyFolder): Access is denied. (code: 5)
The Question: Is it possible to change the PHP current script owner? 问题:是否可以更改PHP当前脚本所有者? And if so, would I change this somewhere in PHP or Apache? 如果是这样,我可以在PHP或Apache的某个地方进行更改吗?
This will affect PHP as well. 这也会影响PHP。
Note that you will have to provide the password to the account and that it will be stored in clear text in the registry, so choose wisely which account you want to use there. 请注意,您将必须提供该帐户的密码,并且该密码将以明文形式存储在注册表中,因此请明智地选择要在该帐户中使用的帐户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.