一段时间以来,我一直在尝试以工作方式安装 php、apache 和 mySQL。在多次手动尝试并遇到障碍后,我最终只是尝试使用 Xampp。
但是,在启动时,程序说:
2:18:39 PM [main] Running with Administrator rights - good!
2:18:39 PM [main] XAMPP Installation Directory: "c:\xampp\"
2:18:39 PM [main] Checking for prerequisites
2:18:39 PM [main] All prerequisites found
2:18:39 PM [main] Initializing Modules
2:18:39 PM [Apache] Apache Service detected with wrong path
2:18:39 PM [Apache] Change XAMPP Apache and Control Panel settings or
2:18:39 PM [Apache] Uninstall/disable the other service manually first
2:18:39 PM [Apache] Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
2:18:39 PM [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
我遵循了这里的建议,但是
(a) 将端口更改Listen 80
为Listen *:80
或Listen 81
没有效果。
(b) 使用netstat -ao
,没有以 80 结尾的本地地址。
我还尝试删除与 apache、mysql 和 php 相关的所有文件,这些文件不在 xampp 文件夹中,这些文件是以前安装尝试遗留下来的。
试过xampp 1.8.2,卸载,试过1.8.3,同样的问题。
据我所知,在安装之前,我必须在 Xampp 之外的某个地方更改了一些代码,现在它在运行 apache 时执行,将路径从 Xampp 想要的 ( Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
) 更改为现在删除的文件夹的路径C:\Apache24\bin
。但是,我不知道这段代码可能在哪里!
我尝试在整个 C 驱动器中搜索 C:\Apache24\bin,但搜索结果为空。
机器:Windows 7 64位
以前安装/卸载:Apache2.2、Apache2.4、php5.5.4、使用 MySQL Installer 5.6 的 MySQL
为 windows 1.8.2 尝试了 xampp
当前安装了适用于 windows 1.8.3 的 xampp。
有什么帮助吗?