WAMP 在 VirtualBox 中使用 Windows 10

WAMP using Windows 10 in VirtualBox

我想安装一个 Web 服务器并分析请求的处理,以验证配置与服务器行为之间的关系。

为了能够交付我的配置,我决定在 VirtualBox 虚拟机中开发整个任务

我经历的过程很简单:

  1. 安装 VirtualBox 虚拟器。
  2. 下载 free Windows 10 virtual machine 进行测试(运行 90 天)。
  3. 下载并安装Visual Studio2012VC11vcredist_x64/ 86.exe 和虚拟机上的 WAMP 包。 (要将文件拖到虚拟机,请转到“设备”>“拖动”)

由于我使用的是 Windows10 的 64 位版本,因此决定安装 WAMP x64

最初,我遇到的错误是:

vcruntime140.dll

msvcr120.dll

msvcp120.dll

全部搞定后,将.dll复制到System32文件夹下,再没有.dll丢失,仍然出现如下错误:

The application was unable to start correctly (0x000007b).

此时我想:好吧,如果 WAMP x64 不行,我们试试 WAMP x32

原来显示的错误是(就像之前在 WAMP x64 中一样):

vcruntime140.dll

msvcr120.dll

msvcp120.dll

根据 WAMPS's forum moderatorsRiggsFolly 中的一项,它对以下方面至关重要:

-- Make sure your system has "up to date" versions of ALL these redistributable packages:-

--- Microsoft Visual C/C++ Redistributable 2008 (VC9),

--- Microsoft Visual C/C++ Redistributable 2010 (VC10),

--- Microsoft Visual C/C++ Redistributable 2012 (VC11),

--- Microsoft Visual C/C++ Redistributable 2013 (VC13),

--- Microsoft Visual C/C++ Redistributable 2015 (VC14),

--- Microsoft Visual C/C++ Redistributable 2017 (VC15)

完成并尝试安装 WAMP x64 后,我得到了与以前相同的结果。

同样基于论坛中的 RiggsFolly post:

-- Wampserver 3.1.3 32/64 bit x86_x64 (Cumulative Update.) You are strongly encouraged to apply this update. This is a cumulative update. There is no need to apply the old updates 3.0.1 to 3.1.2 before applying 3.1.3. This update will be required to install the latest Apache, PHP, MySQL or MariaDB addons.

我已经这样做了,但问题仍然存在...正在测试 atm 安装 WAMP x32

在我看来,我在绕圈子,由于我的机器要求,安装 WAMP 最多可能需要 30 分钟 - 等待的时间太长了。这应该很简单,我不明白...

怎样才能成功完成WAMP的安装?

这使用 WAMP x32(并且 ofc 授予所有以前的可再发行包 - 仅 x 86 就足够了)。

由于缺少 DLL 文件错误,以下简单修复可能会解决问题。

打开 CMD 并粘贴以下内容:

sfc /scannow

过程完成需要稍等片刻,但问题应该已经解决了。


编辑:如果上述过程没有解决,请先执行此操作:
1 - 卸载 WAMP
2 - 安装所有 Visual C++ 可再发行组件包(2008、2010、2012、2013、2015、2017)
3 - 重新安装 WAMP

然后重做上面的过程,你就拥有了所有的 .dll(这甚至可能不需要启动所有的服务并且 运行 没有错误)。