";nt权威系统”;可以';不要在apache上使用exec()


"nt authoritysystem" can't use exec() on apache

我正在apache上运行一个php脚本,但一直无法让exec()正常工作。当我执行echo-exec("hoami")时,它会说"nt authority''system",所以我认为"nt authority ''system"没有执行权限,或者存在其他问题。

如何让"nt authority''system"能够使用exec()

在命令提示符中,使用whoami查看它使用的帐户。然后在服务中,找到你的Apace实例、属性和登录。选择此帐户并添加命令提示符正在使用的帐户。