Apache在XAMPP中不起作用! !

时间:2014-07-26 11:16:26

标签: apache

我一直得到同样的错误,我已经尝试多次通过'httpd.conf'更改端口,但它没用,它一直给我这个错误。任何帮助表示赞赏;

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

2 个答案:

答案 0 :(得分:0)

这个问题有很多原因。这个问题的主要原因之一是关于端口。如果你正在运行另一个程序,如skype等阻塞端口80或443.那么你已经找到了问题!将apache的端口设置更改为81,apache将正常工作

答案 1 :(得分:0)

Apache需要使用默认端口80(HTTP)和443(HTTPS / SSL),您有两个选择,要么更改apache使用的端口号,要么禁用系统使用这些端口的服务。我提出了一个适用于Windows 7的解决方案。 您必须断开默认情况下侦听端口80的Microsoft IIS服务器,执行以下操作: - 以管理员模式访问命令行CMD 写道:net stop是 - 你会回答是的 - 您将回答IIS已断开连接的确认 你可以在端口80上启动apache

您可能还忙着端口443为您的系统提供另一项服务,通过xampp apache配置按钮中的控制面板选择.. Apache(httpd-ssl.config)并用任何其他号码替换出现的数字443例如,444只在非注释的行中是必要的(注释行以#开头)