【问题标题】:Mapped Azure File Share not accessible from PHP on Windows Azure VM无法从 Windows Azure VM 上的 PHP 访问映射的 Azure 文件共享
【发布时间】:2021-06-09 19:35:15
【问题描述】:

我有一个运行 IIS/PHP 的 Windows Azure VM。我已将 Azure 文件共享映射到 VM。 PHP 在运行 is_dir('//server/share') 时总是返回 false。如何映射 Azure 文件共享以便 PHP 可以看到它?

【问题讨论】:

  • 当我运行 PSEXEC 并在 SYSTEM 帐户下安装驱动器时,驱动器显示在 PHP 中,但显示用户名和密码不正确。在 Windows 资源管理器中,该驱动器显示为已断开连接,但单击它时仍然可以工作。

标签: php windows azure iis


【解决方案1】:

通过将 Azure 存储帐户添加为服务器上的管理员用户并使用该帐户在 IIS 下的网站基本设置下进行连接,我能够让 PHP 查看映射的驱动器。

见:Access mapped drive by IIS running asp.net mvc web application

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-27
    • 1970-01-01
    • 1970-01-01
    • 2021-11-05
    • 2019-07-11
    • 2019-08-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多