1

无法连接到我的 apache 服务器,因为有这个问题:

13:55:14  [main]    Initializing Control Panel
13:55:14  [main]    Windows Version: Windows 7 Home Premium SP1 64-bit
13:55:14  [main]    XAMPP Version: 1.8.2
13:55:14  [main]    Control Panel Version: 3.2.1  [ Compiled: May 7th 2013 ]
13:55:14  [main]    Running with Administrator rights - good!
13:55:14  [main]    XAMPP Installation Directory: "c:\xampp\"
13:55:14  [main]    Checking for prerequisites
13:55:14  [main]    All prerequisites found
13:55:14  [main]    Initializing Modules
13:55:14  [Apache]  Problem detected!
13:55:14  [Apache]  Port 443 in use by "Unable to open process" with PID 4!
13:55:14  [Apache]  Apache WILL NOT start without the configured ports free!
13:55:14  [Apache]  You need to uninstall/disable/reconfigure the blocking application
13:55:14  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
13:55:14  [main]    Enabling autostart for module "Apache"
13:55:14  [main]    Starting Check-Timer
13:55:14  [main]    Control Panel Ready
13:55:15  [Apache]  Autostart active: starting...
13:55:15  [Apache]  Problem detected!
13:55:15  [Apache]  Port 443 in use by "Unable to open process" with PID 4!
13:55:15  [Apache]  Apache WILL NOT start without the configured ports free!
13:55:15  [Apache]  You need to uninstall/disable/reconfigure the blocking application
13:55:15  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
13:55:15  [Apache]  Attempting to start Apache app...
13:55:16  [Apache]  Status change detected: running
13:55:18  [Apache]  Status change detected: stopped
13:55:18  [Apache]  Error: Apache shutdown unexpectedly.
13:55:18  [Apache]  This may be due to a blocked port, missing dependencies, 
13:55:18  [Apache]  improper privileges, a crash, or a shutdown by another method.
13:55:18  [Apache]  Press the Logs button to view error logs and check
13:55:18  [Apache]  the Windows Event Viewer for more clues
13:55:18  [Apache]  If you need more help, copy and post this
13:55:18  [Apache]  entire log window on the forums
13:57:09  [Apache]  Status change detected: running
13:57:11  [Apache]  Status change detected: stopped
13:57:11  [Apache]  Error: Apache shutdown unexpectedly.
13:57:11  [Apache]  This may be due to a blocked port, missing dependencies, 
13:57:11  [Apache]  improper privileges, a crash, or a shutdown by another method.
13:57:11  [Apache]  Press the Logs button to view error logs and check
13:57:11  [Apache]  the Windows Event Viewer for more clues
13:57:11  [Apache]  If you need more help, copy and post this
13:57:11  [Apache]  entire log window on the forums

看了其他答案,没有太大帮助。尝试更改 ssl 配置文件中的端口,取消勾选 80 和 443 端口作为 Skype 中的替代项。

控制台输出:

C:\windows\system32>netstat -a -n -o |findstr 443


TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       4
TCP    127.0.0.1:55443        127.0.0.1:55444        ESTABLISHED     5688
TCP    127.0.0.1:55444        127.0.0.1:55443        ESTABLISHED     5688
TCP    137.195.217.195:49765  217.69.138.96:443      ESTABLISHED     6396
TCP    137.195.217.195:49906  91.190.218.65:443      TIME_WAIT       0
TCP    137.195.217.195:49933  217.121.239.186:443    TIME_WAIT       0
TCP    137.195.217.195:49934  109.226.143.173:443    TIME_WAIT       0
TCP    137.195.217.195:49941  82.238.69.143:443      TIME_WAIT       0
TCP    137.195.217.195:49942  77.250.206.134:443     TIME_WAIT       0
TCP    137.195.217.195:50234  91.190.218.17:443      TIME_WAIT       0
TCP    137.195.217.195:50369  46.118.72.191:443      TIME_WAIT       0
TCP    137.195.217.195:50370  140.164.26.217:443     TIME_WAIT       0
TCP    137.195.217.195:50379  92.122.83.240:443      ESTABLISHED     5512
TCP    [::]:443               [::]:0                 LISTENING       4

关于如何最终毫无问题地使用 XAMPP 的任何建议?提前致谢

4

3 回答 3

0

我在运行多个 XAMPP 副本或关闭并打开它几次后遇到此问题。

基本上,httpd.exe 在后台保持打开状态并保持端口打开。该错误消息似乎是通用的,因为它只会说它无法打开端口 80/443,即使您已将其更改为其他内容。

其他东西可能正在使用您指定的端口。您可以通过运行 resmon.exe、转到“网络”选项卡并查看“侦听端口”部分下列出的进程来检查这一点。如果您发现冲突,那么您要么需要终止进程,要么将端口更改为其他可用的端口。

按照以下说明在 Windows 8 上终止 httpd.exe 进程...

  1. 关闭 XAMPP。
  2. 启动任务管理器 ( Ctrl++ Shift) Escape
  3. 单击详细信息选项卡。
  4. 找到 httpd.exe 并选择它。
  5. 单击结束任务,然后确认。
  6. 启动 XAMPP。
  7. 单击要启动的服务上的启动。
于 2015-04-29T08:50:49.833 回答
0

您必须更改 xampp\apache\conf\extra\httpd-ssl.conf 上的 ssl 端口。搜索 443,将其更改为 4430 或您喜欢的任何其他。它应该工作。

于 2014-12-05T13:26:56.387 回答
0

尝试使用 pid 4 更改进程的设置以不使用端口 443 或关闭它。如果这不是一个选项,请尝试更改 apache 端口。更改端口指南:http ://complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp编辑:不小心发布了 apache 端口更改而不是这里的 ssl ssl 和 apache 指南:http: //furqansindhu.wordpress.com/2012/03/07/change-apache-port-in-xampp/

于 2013-12-05T14:25:26.453 回答