通过XAMPP自带的netstat可以看到,443端口被占用了。

[XAMPP]apche启动报错自查

所以我们修改ssl的默认端口

[XAMPP]apche启动报错自查

同时修改XAMPP软件内的端口

[XAMPP]apche启动报错自查

 

附上我的报错信息

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

同理,如果您的80端口被占用,也需要修改

正常启动后访问127.0.0.1:81#这里替换为您修改的httpd的端口,不是ssl的端口

[XAMPP]apche启动报错自查

 

相关文章:

  • 2021-06-01
  • 2021-08-18
  • 2022-01-21
  • 2021-07-21
  • 2022-12-23
  • 2021-07-27
  • 2021-11-07
猜你喜欢
  • 2021-06-26
  • 2021-07-21
  • 2021-11-15
  • 2021-08-05
  • 2022-01-21
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案