【问题标题】:PHP won't run under Windows 2012 Server R2 - Installs but nothing elsePHP 不会在 Windows 2012 Server R2 下运行 - 安装但没有别的
【发布时间】:2020-06-23 08:16:50
【问题描述】:

我有一台运行 Windows 10 的笔记本电脑和一台运行 Windows 2012 Server R2 的联想服务器。

我在笔记本电脑上安装了 PHP 7.4.3。当我在命令行上运行 php -v 时,我得到:

C:\Users\david>php -v PHP 7.4.3 (cli)(构建:2020 年 2 月 18 日 17:29:46)(ZTS Visual C++ 2017 x64) 版权所有 (c) PHP 集团 Zend Engine v3.4.0,版权所有 (c) Zend Technologies

因此,我知道安装没问题。当我在服务器上运行 php -v 时,命令提示符返回但什么也不显示:-

谁能指出哪里出了问题?

【问题讨论】:

  • 你添加环境变量了吗?
  • 是的,我做到了。 Windows 10 和 Windows Server 机器之间的设置完全相同。我什至尝试了 Microsoft Web Install 程序,但结果是一样的。

标签: php windows server


【解决方案1】:

您需要为 Visual Studio 2015-2019 安装 Visual C++ Redistributable。

【讨论】:

    猜你喜欢
    • 2016-10-24
    • 1970-01-01
    • 2016-08-01
    • 1970-01-01
    • 2016-05-27
    • 2018-09-15
    • 2016-11-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多