简体   繁体   English

XAMPP无法启动Apache和MySql服务器

[英]XAMPP will not start Apache and MySql servers

Here is what the control panel looks like 这是控制面板的外观

But the output over here seems like it's working?? 但是这里的输出似乎正在工作??

So far I've tried a whole bunch of terminal commands to force it to start and none of them have worked so far. 到目前为止,我已经尝试了很多终端命令来强制它启动,但是到目前为止,它们都没有起作用。 Then I tried reinstalling but the same problem. 然后我尝试重新安装,但同样的问题。 I tried changing the port but that didn't work either. 我尝试更改端口,但这也不起作用。

When I run php files in the htdocs folder it works fine though, but phpMyAdmin doesn't connect. 当我在htdocs文件夹中运行php文件时,它可以正常运行,但是phpMyAdmin无法连接。

This is error I get when trying to connect to phpMyAdmin 这是我尝试连接到phpMyAdmin时遇到的错误

Having just spent hours on this problem, the following answer helped me: 在这个问题上花了几个小时之后,以下答案对我有所帮助:

"If the problem is not a busy port you can also try the following: select "show debug information" in the XAMPP config panel. you will find this option in config panel enable this option and click save it will display the files that are being executed, like when starting Apache you'll be shown something like "Executing "c:\\xampp\\apache\\bin\\httpd.exe". “如果问题不是繁忙的端口,您还可以尝试以下操作:在XAMPP配置面板中选择“显示调试信息”。您将在配置面板中找到此选项,启用此选项并单击“保存”,它将显示正在执行,例如启动Apache时,将显示类似“正在执行c:\\ xampp \\ apache \\ bin \\ httpd.exe”的内容。 If you run the same command in cmd prompt it will clearly display the error with file name and line number. 如果在cmd提示符下运行相同的命令,它将清楚显示错误以及文件名和行号。

All you need to do is to find the respective file dig in the code and resolve it.Your problem will be [may be] solved." 您需要做的就是在代码中找到相应的文件摘要并加以解决。您的问题将得到(可能)解决。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM