【问题标题】:IIS - 1 ApplicationPool with 2 sites, current_user is different. How to change?IIS - 1 ApplicationPool 有 2 个站点,current_user 不同。如何改变?
【发布时间】:2021-05-30 03:23:09
【问题描述】:

我有一个 ISS 10 服务器,它在 1 个应用程序池中托管 2 个 PHP 应用程序。 应用程序池配置了身份“userA”。

当我在 site01 上运行 get_current_user() 时,它返回“userA”。 当我在 site02 上运行它时,它返回“IUSR”。

如何解决 site02 的问题并使其使用相同的用户帐户运行?

谢谢

【问题讨论】:

    标签: iis application-pool iis-10


    【解决方案1】:

    在 IIS 管理器中选择站点,然后选择 Authentication 图标,选择 Anonymous Authentication 并单击右侧操作面板中的 Edit...

    确保两个网站的这些设置相同。

    【讨论】:

    • 谢谢,现在是正确的用户!目标是能够运行 Shell_Exec() 但它不起作用。我不明白为什么,但我无法使用该站点运行脚本(它适用于 site01)。有什么想法吗?
    • @kent2004 - 抱歉,我没有使用或拥有 PHP。
    猜你喜欢
    • 2021-10-17
    • 1970-01-01
    • 2020-09-21
    • 1970-01-01
    • 1970-01-01
    • 2017-07-22
    • 2010-10-14
    • 2012-07-23
    • 1970-01-01
    相关资源
    最近更新 更多