如何配置 XAMPP 来修复此错误?

How can I configure XAMPP to fix this errors?

我刚刚在我的电脑上安装了 XAMPP,但在日志控制台中它给我以下错误:

[Apache]    Apache Service detected with wrong path
[Apache]    Change XAMPP Apache and Control Panel settings or
[Apache]    Uninstall/disable the other service manually first
[Apache]    Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
[Apache]    Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
[Apache]    Problem detected!
[Apache]    Port 80 in use by ""C:\Apache24\bin\httpd.exe" -k runservice" with PID 1632!
[Apache]    Apache WILL NOT start without the configured ports free!
[Apache]    You need to uninstall/disable/reconfigure the blocking application
[Apache]    or reconfigure Apache and the Control Panel to listen on a different port
[mysql]     Problem detected!
[mysql]     Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.5\my.ini" MySQL55"!
[mysql]     MySQL WILL NOT start without the configured ports free!
[mysql]     You need to uninstall/disable/reconfigure the blocking application
[mysql]     or reconfigure MySQL and the Control Panel to listen on a different port

我不知道如何解决它们。

您将尝试在 apache 目录中更改 httpd.conf 的端口 80:

C:\xampp\apache\conf\httpd.conf

它出现在某些行中。有时,它在 IP 之后,例如 192.168.1.x:80

您安装了 XAMPP Mysql 和 Apache。如果您要使用 XAMPP,您需要卸载 Apache 和 Mysql。这将解决您的问题

我不确定为什么你安装了包含 Apache 和 Mysql 的 XAMPP,然后你又分别安装了 Apache 和 Mysql。

如果出于某种原因您不想卸载 Apache 和 Mysql,您可以转到 Windows > 输入 services.msc 并停止服务 Mysql 和阿帕奇