从Xampp启动Apache服务时出错

时间:2014-01-29 01:30:28

标签: apache xampp port

在笔记本电脑上安装新版本的Xampp后,出现以下错误:

控制面板的错误日志:

9:24:26 AM  [Apache]    Problem detected!
9:24:26 AM  [Apache]    Port 80 in use by "Unable to open process" with PID 4!
9:24:26 AM  [Apache]    Apache WILL NOT start without the configured ports free!
9:24:26 AM  [Apache]    You need to uninstall/disable/reconfigure the blocking application
9:24:26 AM  [Apache]    or reconfigure Apache and the Control Panel to listen on a different port
9:24:26 AM  [Apache]    Attempting to start Apache app...
9:24:26 AM  [Apache]    Status change detected: running
9:24:27 AM  [Apache]    Status change detected: stopped
9:24:27 AM  [Apache]    Error: Apache shutdown unexpectedly.
9:24:27 AM  [Apache]    This may be due to a blocked port, missing dependencies, 
9:24:27 AM  [Apache]    improper privileges, a crash, or a shutdown by another method.
9:24:27 AM  [Apache]    Press the Logs button to view error logs and check
9:24:27 AM  [Apache]    the Windows Event Viewer for more clues
9:24:27 AM  [Apache]    If you need more help, copy and post this
9:24:27 AM  [Apache]    entire log window on the forums

Netstat的输出

  TCP    0.0.0.0:80             MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:135            MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:445            MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:8000           MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:8883           MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:12680          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49152          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49153          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49154          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49155          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49158          MW70VRC49LC8OO:0       LISTENING
  TCP    10.23.121.46:139       MW70VRC49LC8OO:0       LISTENING
  TCP    127.0.0.1:4242         MW70VRC49LC8OO:0       LISTENING
  TCP    127.0.0.1:60544        MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:80                MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:135               MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:445               MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:8000              MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:8883              MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49152             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49153             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49154             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49155             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49158             MW70VRC49LC8OO:0       LISTENING

我甚至从 Skype>中禁用了端口80,443选项>高级>连接> Untick选项:使用端口80和443作为传入连接的替代方案。我知道Skype和Xampp与端口存在冲突问题,因此我被告知要从Skype禁用它。

是否有一个我需要做的配置,因为我有另一台笔记本电脑,我在安装和启动Apache模块时没有任何问题。

希望得到一些帮助。

1 个答案:

答案 0 :(得分:0)

我相信我可能找到了解决方案。由于网络服务器正在使用端口80,@EugenRieck可能建议我更改端口

因此,我编辑了Apache (httpd.conf)文件并将以下行更改为Listen 80到另一个端口号(例如82)。