Windows 上的 XAMPP - Apache 未启动 [英] XAMPP on Windows - Apache not starting

查看:31
本文介绍了Windows 上的 XAMPP - Apache 未启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 机器上安装了 XAMPP,但无法让 Apache 工作.

I have installed XAMPP on my windows 7 machine but can't get Apache to work.

开始时出现以下错误:

13:09:21  [apache]  Apache Service Detected With Wrong Path
13:09:21  [apache]  Uninstall the service manually first
13:09:21  [apache]  Possible problem detected! 
13:09:21  [apache]  Port 80 in use by "system"!
13:09:21  [tomcat]  Tomcat Service Detected With Wrong Path
13:09:21  [tomcat]  Uninstall the service manually first

打开XAMPP面板并安装Apache服务后:我试过启动它,它总是卡在正在启动apache服务..."

After opening the XAMPP panel and installing Apache service: I have tried start it, it always get stuck "Starting apache service..."

关于如何解决这个问题有什么建议吗?

Any advice on how I could resolve this ?

谢谢贾米尔

推荐答案

我能够解决这个问题!

遇到与上述相同的问题,确保没有使用端口 80 并且仍然无法正常工作,并收到消息说 Apache 和 Mysql 被检测到路径错误.

Had the same problems as stated above, made sure nothing was using port 80 and still not working and getting the message that Apache and Mysql were detected with the wrong path.

我之前确实安装过一次 XAMPP,卸载并重新安装.我什至手动卸载了但仍然有问题.

I did install XAMPP once before, uninstalled and reinstalled. I even manually uninstalled but still had issues.

修复.请务必先备份您的系统!

The fix. Make sure you backup your system first!

  1. 通过控制面板启动服务>管理工具(也可以使用 Ctrl+Rservices.msc代码>)

查找 Apache 和 MySQL 服务.查看说明中指示的补丁(右键单击服务,然后单击属性).您可能将 Apache 列出了两次,一次来自您的正确安装,另一次来自以前的安装.即使你只看到一个,看看路径,很可能它来自以前的安装并导致你的安装不起作用.无论哪种情况,您都需要删除那些不正确的服务.

Look for Apache and MySQL services. Look at the patch indicated in the description (right click on service then click on properties). Chances are that you have Apache listed twice, one from your correct install and one from a previous install. Even if you only see one, look at the path, chances are it's from a previous install and causing your install not to work. In either case, you need to delete those incorrect services.

一个.进入命令提示符(以管理员身份运行):开始>所有程序>附件>右键单击命令提示符>选择以管理员身份运行"

a. Got to command prompt (run as administrator): Start > all programs > Accessories > right click on Command Prompt > Select 'run as administrator'

B.在命令提示符下键入 sc delete service,其中 service 是您要删除的服务,例如 apache2.1(或 sc delete Apache2.4).它应该与您的服务中显示的完全一样.如果服务有空格,例如 Apache 2.1,则在引号中输入,即 sc delete "Apache 2.1"

b. on command prompt type sc delete service, where service is the service you're wanting to delete, such as apache2.1 (or sc delete Apache2.4). It should be exactly as it appears in your services. If the service has spaces such as Apache 2.1 then enter it in quotes, i.e. sc delete "Apache 2.1"

c.按回车键.现在刷新或关闭/打开您的服务窗口,您会看到它消失了.

c. press enter. Now refresh or close/open your services window and you'll see it`s gone.

对 XAMPP 发现以错误路径运行的所有服务执行此操作.

DO THIS for all services that XAMPP finds as running with an incorrect path.

执行此操作后,继续并重新启动 XAMPP 控制面板(以管理员身份),瞧!所有作品.没有冲突

Once you do this, go ahead and restart the XAMPP control panel (as administrator) and voila! all works. No conflicts

这篇关于Windows 上的 XAMPP - Apache 未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆