在Windows 10上安装PHP7和Apache2.4 - php7apache2_4.dll错误

Sto*_*ker 10 php windows apache

刚刚上了Windows 10,在我配置了我的php.ini和http.conf后,我进入了命令行httpd.exe并得到了以下错误信息:

httpd.exe: Syntax error on line 530 of C:/Apache/conf/httpd.conf: Cannot load C:/php/php7apache2_4.dll into server: The specified module could not be found.
Run Code Online (Sandbox Code Playgroud)

我知道这个文件在那个文件夹中.我已经安装了64位版本的PHP和Apache,我不知道发生了什么.

Kum*_*mar 18

检查是否已安装PHP的Thread安全版本.非线程安全版本将导致此错误.

你可以在这里下载PHP的线程安全版本


小智 5

当您下载 PHP 时,您应该选择 ThreadSafe 包,Apache 不支持 nonThreadSafe...


小智 0

您使用哪个 VC 编译版本的 Apache?在php.net上,他们建议将apachelounge.com的 apache 服务器与线程安全的 php 文件结合使用。
另请确保您已安装 C++ Redistributable Visual Studio 2015。
如果仍然因该错误而失败,请确保启动该进程的用户有权访问文件系统。