简体   繁体   English

错误:Apache意外关闭。 更改了端口,仍然无法正常工作

[英]Error: Apache shutdown unexpectedly. Changed ports, Still not working

I installed XAMPP and for some reason when I start running Apache, it doesn't run. 我安装了XAMPP,由于某种原因,当我开始运行Apache时,它没有运行。 I'm not using Skype and also changed the port from 80 to 8080,7777. 我没有使用Skype,也将端口从80更改为8080,7777。 But nothing seems to work. 但是似乎没有任何作用。 Also when I try opening the logs, they are empty. 另外,当我尝试打开日志时,它们是空的。

The detailed error which I get is as follows 我得到的详细错误如下

10:29:55 PM  [Apache]   Attempting to start Apache app...
10:29:55 PM  [Apache]   Status change detected: running
10:29:57 PM  [Apache]   Status change detected: stopped
10:29:57 PM  [Apache]   Error: Apache shutdown unexpectedly.
10:29:57 PM  [Apache]   This may be due to a blocked port, missing dependencies, 
10:29:57 PM  [Apache]   improper privileges, a crash, or a shutdown by another method.
10:29:57 PM  [Apache]   Press the Logs button to view error logs and check
10:29:57 PM  [Apache]   the Windows Event Viewer for more clues
10:29:57 PM  [Apache]   If you need more help, copy and post this
10:29:57 PM  [Apache]   entire log window on the forums

Please someone help 请有人帮忙

好吧,以某种方式重新安装XAMPP对我有用。

Be sure to install (or unzip) the xampp folder to the root directory (C:\\). 确保将xampp文件夹安装(或解压缩)到根目录(C:\\)。 It helped me even when Skype was listening on the same port apache still would boot up. 即使Skype在同一端口上监听Apache仍然可以启动,它也对我有所帮助。

Than it is good practise to change http port and ssl port to some different number up to 65535. You have to change it in 3 steps: 最好的做法是将http端口和ssl端口更改为最大65535的其他数字。您必须分3个步骤进行更改:

1) In Config Panel -> Service and Port Settings -> Main Port & SSL Port 1)在配置面板->服务和端口设置->主端口和SSL端口

2) Apache (httpd.conf) 2)Apache(httpd.conf)

3) Apache (httpd-ssl.conf) 3)Apache(httpd-ssl.conf)

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

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