dongxuan1314 2018-07-07 06:35
浏览 131

xampp无法正常工作,当我尝试启动服务器时出现错误

Error: Apache shutdown unexpectedly.
11:58:07  [Apache]  This may be due to a blocked port, missing dependencies, 
11:58:07  [Apache]  improper privileges, a crash, or a shutdown by another method.
11:58:07  [Apache]  Press the Logs button to view error logs and check
11:58:07  [Apache]  the Windows Event Viewer for more clues
11:58:07  [Apache]  If you need more help, copy and post this
11:58:07  [Apache]  entire log window on the forums

I can't start the server, the errors above appear when I try to

  • 写回答

2条回答 默认 最新

  • douxian9010 2018-07-07 06:58
    关注

    Open XAMPP Control Panel and select Config under Apache. Select your httpd.conf and locate the following line.

    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to 
    # prevent Apache from glomming onto all bound IP addresses.
    #
    #Listen 12.34.56.78:80 
    Listen **xx**
    

    Where you see xx change this to something like 8080 if it currently states 81. Port 81 is commonly used by a few applications, so I tend to always change to 8080 by default, but your network may be different. You may obviously use netstat to see what ports may be available to you.

    Restart XAMPP entirely as Apache is very fussy, then try starting Apache again.

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类