【问题标题】:php7ts.dll cannot load into serverphp7ts.dll 无法加载到服务器
【发布时间】:2018-10-29 05:26:37
【问题描述】:

今天我安装了php7,但是当我重新启动apache时,它无法启动。尽管我将httpd-xampp.conf 文件编辑为配置php7,但又再次出现。 反正我去C:/xampp运行apache_start.bat,然后我看到了下面的错误

Apache 2 is starting ...

httpd.exe: Syntax error on line 456 of C:/xampp/apache/conf/httpd.conf: Syntax error on line 17 of C:/xampp/apache/conf/extra/httpd-xampp.conf: Cannot load C:/xampp/php/php7ts.dll into server: The specified module could not be found.

之后我检查了这些文件,发现它们存在。 我现在能做什么?

提前谢谢...

【问题讨论】:

  • 显示C:/xampp/apache/conf/httpd.conf的第456行和C:/xampp/apache/conf/extra/httpd-xampp.conf的第17行
  • httpd.conf 的第 456 行:包括 "conf/extra/httpd-xampp.conf" 和 httpd-xampp.conf 的第 17 行:LoadFile "C:/xampp/php/php7ts.dll"

标签: php apache xampp


【解决方案1】:

您需要将所有组件安装在相同的 x64/x86 版本中:

  • Apache(httpd.exe -v 找出安装了哪一个)
  • PHP 7(php.exe -v 找出安装了哪一个)
  • Visual C++ Redistributable for Visual Studio 2015(查看您在 Windows 上安装的软件列表)

如果上述组件之一与其他组件的版本不同,您可能会收到module could not be found 错误。

【讨论】:

    猜你喜欢
    • 2015-07-15
    • 1970-01-01
    • 1970-01-01
    • 2015-07-23
    • 2017-02-22
    • 2017-02-05
    • 1970-01-01
    • 1970-01-01
    • 2017-01-01
    相关资源
    最近更新 更多