win10下,apache启动失败 Cannot load php7apache2_4.dll into server

太奇怪了,win10自动更新了之后,今天突然apache启动不了,一直报错误。

The Apache service named  reported the following error:
>>> httpd.exe: Syntax error on line XXX of E:/Program Files/Apache24/conf/httpd.conf: Cannot load E:/Program Files/php70/php7apache2_4.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3     .


有很多人说需要再下载对应的php,我觉得好麻烦,直接附上解决办法:

下载一个 vcruntime140.dll 放到php目录下

https://pt.dll-files.com/vcruntime140.dll.html



点那个Baixar的链接就下载了,然后把dll放到php7的目录下,apache能正常启动了

你可能感兴趣的:(win10下,apache启动失败 Cannot load php7apache2_4.dll into server)