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

标签 php mysql apache xampp

我刚刚在我的电脑上安装了 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

我不知道如何解决它们。

最佳答案

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

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

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

关于php - 我如何配置 XAMPP 来修复此错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29310623/

相关文章:

mysql - 从另一个表mysql查询将值插入到表中

mysql - 查询结果作为 MySQL 中 WHERE 语句的参数

php mysql 查询组合

php - Node.js + Socket IO + Apache + PHP 从 url 中删除端口?

java - Camel 在完成时停止上下文

php - 在 API 中/我和重定向是个好主意吗?

javascript - fetch 不发送自动填充的输入

php - 如何创建用于生成随机字符串的算法?

linux - 在 Amazon Ec2 上为 apache 用户设置路径变量

php - 使用 php 脚本和连接检查外部服务器数据库的可用性