Xampp apache 在之前的 Apache 安装后不会运行


Xampp apache won't run after previous Apache installation

我已经安装了 Xampp,因为我之前安装的 Apache 模块不允许我使用 curl。但是,我因此收到这些错误,并且无法从 xampp 启动 apache:

10:47:30 AM  [main]     All prerequisites found
10:47:30 AM  [main]     Initializing Modules
10:47:30 AM  [Apache]   Apache Service detected with wrong path
10:47:30 AM  [Apache]   Change XAMPP Apache and Control Panel settings or
10:47:30 AM  [Apache]   Uninstall/disable the other service manually first
10:47:30 AM  [Apache]   Found Path: "C:'Apache24'bin'httpd.exe" -k runservice
10:47:30 AM  [Apache]   Expected Path: "c:'xampp'apache'bin'httpd.exe" -k runservice
10:47:30 AM  [main]     Starting Check-Timer
10:47:30 AM  [main]     Control Panel Ready

我尝试将 C:''xampp''apache''bin 目录添加到路径中,并注释掉了引用原始 Apache 模块使用的端口的行 (C:''Apache24''bin''httpd.conf):

 # Listen: Allows you to bind Apache to specific IP addresses and/or
 # ports, instead of the default. See also the <VirtualHost>
 # directive.
 #
 # Change this to Listen on specific IP addresses as shown below to 
 # prevent Apache from glomming onto all bound IP addresses.
 #
 #Listen 12.34.56.78:80
 #Listen 80

以下是我的路径变量:

C:'Windows'system32;C:'Windows;C:'Windows'System32'Wbem;C:'Windows'System32'WindowsPowerShell'v1.0';C:'Program Files (x86)'ATI Technologies'ATI.ACE'Core-Static; C:'Program Files'TortoiseSVN'bin;C:'PHP;C:'PHP'ext;C:'Apache24'bin;C:'xampp'apache'bin;C:'Ruby193'bin;C:'xampp'apache'bin"

我认为它不会帮助我解决问题,但是我应该从路径中删除原始Apache目录来解决此问题吗?

您需要卸载 xampp 先前安装的所有内容。为什么c:'驱动器中有 Apache 文件夹?xampp控制的所有内容都将驻留在c:'xampp目录中。它包含mysql, php, ftp, apache和整个软件捆绑在xampp文件夹中。

删除所有带有apache un-install tool first.如果未找到,请手动执行,确保 apache 已关闭,以便在删除时不会收到权限错误。然后清除与 apache 和其他xampp软件组件相关的路径变量。

同时运行 xampp 卸载程序,它将清理您之前的安装残留物,包括设置。(仔细检查c:'文件夹,并确保没有任何 xampp 文件夹,如果有的话,在新安装之前删除)

您无需重新启动电脑。再次运行 xampp 安装程序,考虑到您已经卸载了以前的独立 Apache 安装和 xampp 卸载,并且c:'驱动器上没有任何文件夹,并且在新安装之前清除了您的设置,您应该很高兴。