httpd.exe:语法错误,PHP uWamp 服务器中的 5.2.17

httpd.exe: Syntax error, PHP 5.2.17 in uWamp server

我想更新我做的旧项目。它写在PHP version:5.2.17。当我为 uWamp 下载正确版本时,我收到此错误

httpd.exe:C:/UwAmp/bin/apache/conf/httpd.conf 的第 166 行出现语法错误:LoadModule 有两个参数,一个模块名称和一个要从中加载它的共享对象文件的名称。

有人可以帮我解决这个错误吗?

确保您拥有正确的 Visual C++ Redistributable x86,就像他们在 the download page 上所说的那样。

同样的错误,但最近的 php 版本已通过安装正确的文件进行更正。

Before use UwAmp you must install Visual C++ Redistributable x86 version vc_redist.x86.exe. This is a PHP requirement.

  • For PHP older version you need : Download VC6 2005 vc_redist.x86.exe
  • For PHP 5.3 you need : Download VC9 2008 vc_redist.x86.exe
  • For PHP 5.4+ you need : Download VC11 2012 vc_redist.x86.exe
  • For PHP 7.x+ you need : Download VC14 2015 vc_redist.x86.exe