【发布时间】:2013-10-08 02:37:43
【问题描述】:
一段时间以来,我一直在尝试以有效的方式安装 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
我听从了here的建议,但是
(a) 将端口Listen 80 更改为Listen *:80 或Listen 81 无效。
(b) 使用netstat -ao,没有以80结尾的本地地址。
我还尝试删除 xampp 文件夹中与 apache、mysql 和 php 相关的所有文件,这些文件是以前安装尝试遗留下来的。
试过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。
有什么帮助吗?
【问题讨论】:
-
您需要删除以前的 Apache 服务,例如stackoverflow.com/questions/11794829/….