【问题标题】:How can I configure XAMPP to fix this errors?如何配置 XAMPP 来修复此错误?
【发布时间】:2015-06-01 08:49:45
【问题描述】:

我刚刚在我的计算机中安装了 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

我不知道如何解决它们。

【问题讨论】:

  • 您需要关闭 Skype(或其他使用端口 80 的程序),或者您可以修改 httpd.conf 以使用其他 Apache 端口,例如 8080。
  • 我如何查看哪些应用程序使用端口 80?我知道使用 netstat -o 你可以看到所有打开的端口,但我不知道如何解释那里显示的信息。
  • netstat -a -b 应该仍然可以从命令行工作。

标签: php mysql apache xampp


【解决方案1】:

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

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

如果由于某种原因不想卸载 Apache 和 Mysql,可以转到 Windows> 键入 services.msc 并停止服务 Mysql 和 apache

【讨论】:

  • 我卸载了 Apache 和 Mysql,它运行良好。我在安装 XAMPP 之前安装了它们,因为几年前我需要将它们分开。非常感谢:)
【解决方案2】:

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-07
    • 1970-01-01
    • 2020-02-22
    • 2014-03-01
    • 2012-07-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多