简体   繁体   English

Xampp Apache 无法启动 - 端口 80 是免费的 - 日志中没有错误

[英]Xampp Apache won't start - port 80 is free - no error in logs

I'm using xampp on windows 8 for some time now and it was working fine until I've try to restart apache today.我现在在 Windows 8 上使用 xampp 有一段时间了,它运行良好,直到我今天尝试重新启动 apache。 On restart this message appeared :重新启动时出现此消息:

17:54:35  [Apache]  Error: Apache shutdown unexpectedly.
17:54:35  [Apache]  This may be due to a blocked port, missing dependencies, 
17:54:35  [Apache]  improper privileges, a crash, or a shutdown by another method.
17:54:35  [Apache]  Check the "/xampp/apache/logs/error.log" file
17:54:35  [Apache]  and the Windows Event Viewer for more clues

I already disabled services using port 80 a long time ago and no software is using it.很久以前我已经禁用了使用端口 80 的服务,并且没有软件在使用它。 I've checked with netstat command.我已经用 netstat 命令检查过。 I've tried to change port to 8080 and the problem remains the same.我尝试将端口更改为 8080,但问题仍然存在。 So I don't think it's a port problem.所以我不认为这是端口问题。

I don't have any error message in my apache error.log and in windows events viewer.我的 apache error.log 和 Windows 事件查看器中没有任何错误消息。

Some things I've try already and that doesn't work:我已经尝试过但不起作用的一些事情:

  • start xampp control panel with administrator rights,以管理员权限启动 xampp 控制面板,
  • install apache as a service,安装 apache 作为服务,
  • restart my computer,重新启动我的电脑,
  • added this line on my httpd.conf: LoadModule socache_shmcb_module modules/mod_socache_shmcb.so and uncommented this line in httpd-ssl.conf: SSLSessionCache "shmcb:logs/ssl.scache(512000)"在我的 httpd.conf 上添加了这一行: LoadModule socache_shmcb_module modules/mod_socache_shmcb.so并在 httpd-ssl.conf 中取消注释这一行: SSLSessionCache "shmcb:logs/ssl.scache(512000)"

I don't know what to do now.我现在不知道该怎么办。 Please help me.请帮我。 Thanks all.谢谢大家。

在 Windows 中停用 IIS,然后以管理员身份运行 Xammp

check whether your windows firewall is on.检查你的windows防火墙是否开启。 use firewall.cpl from windows run box.使用 windows 运行框中的 firewall.cpl。 if it is on then check whether Apache Http server is allowed (in private/public mode).如果打开,则检查是否允许 Apache Http 服务器(在私有/公共模式下)。 If not allow it.如果不允许。 If prob not solved then check your httpd.conf file in xampp/apache/conf directory .如果问题未解决,请检查 xampp/apache/conf 目录中的 httpd.conf 文件。 Check for the server port in line 47 and for the serveroot directory in line 35. Make sure you have full access to that path.检查第 47 行中的服务器端口和第 35 行中的 serverroot 目录。确保您对该路径具有完全访问权限。

Maybe you should deactivate IIS in Windows because sometimes it blocks port 80 silently without showing any errors.也许您应该在 Windows 中停用 IIS,因为有时它会在不显示任何错误的情况下静默阻止端口 80。 Go to your Windows Control Panel and Program and Features, click on WIndows Features on and off and set the checkbox to off!转到您的 Windows 控制面板和程序和功能,单击打开和关闭 WINdows 功能并将复选框设置为关闭!

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

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