无法在 Win XP 64 位上的 XAMPP 下连接到本地 apache 安装。帮助!

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/422803/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 17:06:42  来源:igfitidea点击:

Can't connect to a local apache installation under XAMPP on Win XP 64-bit. Help!

windowsapache64-bitxampp

提问by

I'm using XAMPP v1.7 on an Win XP-64 bit machine, my Symantec AV is turned off as is my Windows Firewall, and I can't connect to localhost from a browser.

我在 Win XP-64 位机器上使用 XAMPP v1.7,我的 Symantec AV 和我的 Windows 防火墙一样关闭,我无法从浏览器连接到本地主机。

I originally had these errors:
[Wed Jan 07 16:24:55 2009] [error] (OS 10038)An operation was attempted on something that is not a socket. : Child 2716: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive

我最初有这些错误:
[Wed Jan 07 16:24:55 2009] [error] (OS 10038) 尝试对不是套接字的东西进行操作。:子 2716:在接受客户端连接时遇到太多错误。可能的原因:动态地址更新,或不兼容的 VPN 或防火墙软件。尝试使用 Win32DisableAcceptEx 指令

These errors went away after I added the Win32DisableAcceptEx directive to httpd.conf, but the net result remains the same: no joy.

在我将 Win32DisableAcceptEx 指令添加到 httpd.conf 后,这些错误消失了,但最终结果仍然相同:没有乐趣。

Now, I get these errors:
[Wed Jan 07 16:40:15 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11
OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 configured -- resuming normal operations
[Wed Jan 07 16:40:15 2009] [notice] Server built: Dec 10 2008 00:10:06
[Wed Jan 07 16:40:15 2009] [notice] Parent: Created child process 5916
[Wed Jan 07 16:40:15 2009] [notice] Disabled use of AcceptEx() WinSock2 API
[Wed Jan 07 16:40:15 2009] [notice] Digest: generating secret for digest authentication
... [Wed Jan 07 16:40:15 2009] [notice] Digest: done
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Child process is running
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Acquired the start mutex.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Starting 250 worker threads.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Listening on port 443.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Listening on port 80.
[Wed Jan 07 16:40:15 2009] [error] (OS 10038)An operation was attempted on something that
is not a socket. : Too many errors in select loop. Child process exiting.
[Wed Jan 07 16:40:15 2009] [notice] Child 5916: Exit event signaled. Child process is ending.
[Wed Jan 07 16:40:16 2009] [notice] Child 5916: Released the start mutex
[Wed Jan 07 16:40:17 2009] [notice] Child 5916: All worker threads have exited.
[Wed Jan 07 16:40:17 2009] [notice] Child 5916: Child process is exiting
[Wed Jan 07 16:40:17 2009] [notice] Parent: child process exited with status 0 -- Restarting.
[Wed Jan 07 16:40:17 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 07 16:40:17 2009] [notice] Digest: done

现在,我收到这些错误:
[Wed Jan 07 16:40:15 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11
OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 已配置 - - 恢复正常操作
[Wed Jan 07 16:40:15 2009] [notice] 服务器构建时间:2008 年 12 月 10 日 00:10:06
[Wed Jan 07 16:40:15 2009] [notice] 父:创建子进程 5916
[ Wed Jan 07 16:40:15 2009] [notice] 禁用 AcceptEx() WinSock2 API
[Wed Jan 07 16:40:15 2009] [notice] Digest:生成用于摘要认证的秘密
...... [Wed Jan 07 16 :40:15 2009] [notice] 摘要:完成
[Wed Jan 07 16:40:15 2009] [notice] Child 5916:子进程正在运行
[Wed Jan 07 16:40:15 2009] [notice] Child 5916:获取启动互斥锁。
[2009 年 1 月 7 日星期三 16:40:15] [通知] 子 5916:启动 250 个工作线程。
[Wed Jan 07 16:40:15 2009] [notice] Child 5916:侦听端口 443。
[Wed Jan 07 16:40:15 2009] [notice] Child 5916:侦听端口 80。
[Wed Jan 07 16: 40:15 2009] [错误] (OS 10038) 试图对
不是套接字的东西进行操作。: 选择循环中的错误太多。子进程退出。
[2009 年 1 月 7 日星期三 16:40:15] [通知] 子 5916:退出事件发出信号。子进程正在结束。
[Wed Jan 07 16:40:16 2009] [notice] Child 5916:释放了启动互斥锁
[Wed Jan 07 16:40:17 2009] [notice] Child 5916:所有工作线程都已退出。
[Wed Jan 07 16:40:17 2009] [notice] 子 5916:子进程正在退出
[Wed Jan 07 16:40:17 2009] [notice] 父进程:子进程以状态 0 退出 -- 正在重新启动。
[2009 年 1 月 7 日星期三 16:40:17] [通知] 摘要:生成摘要身份验证的秘密......
[2009 年 1 月 7 日星期三 16:40:17] [通知] 摘要:完成

And, apache seems to be crashing (Windows tells me so, and I can see the crash in the system events.)

而且,apache 似乎崩溃了(Windows 告诉我是这样,我可以在系统事件中看到崩溃。)

I'm a n00b to apache, but need to get this running. Ideas? Marcus

我是 apache 的 n00b,但需要让它运行。想法?马库斯

回答by

If anyone comes across this, try running

如果有人遇到这个,请尝试运行

netsh winsock RESET

netsh winsock 重置

from the command line. It worked for me.

从命令行。它对我有用。