简体   繁体   English

apache无法在wamp服务器中启动

[英]apache can't start in wamp server

localhost not work and IIS server stop apache error log look like this 本地主机无法正常工作并且IIS服务器停止apache错误日志如下所示

[Thu Jan 05 14:55:20 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Thu Jan 05 14:55:20 2012] [notice] Server built: Sep 10 2011 11:34:11
[Thu Jan 05 14:55:20 2012] [notice] Parent: Created child process 3152
[Thu Jan 05 14:55:20 2012] [notice] Child 3152: Child process is running
[Thu Jan 05 14:55:20 2012] [crit] (OS 10022)An invalid argument was supplied.  : Child 3152: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Thu Jan 05 14:55:21 2012] [crit] Parent: child process exited with status 3 -- Aborting.
[Thu Jan 05 14:55:31 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Thu Jan 05 14:55:31 2012] [notice] Server built: Sep 10 2011 11:34:11
[Thu Jan 05 14:55:31 2012] [notice] Parent: Created child process 3988
[Thu Jan 05 14:55:31 2012] [notice] Child 3988: Child process is running
[Thu Jan 05 14:55:31 2012] [crit] (OS 10022)An invalid argument was supplied.  : Child 3988: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Thu Jan 05 14:55:31 2012] [crit] Parent: child process exited with status 3 -- Aborting.

anyone know reason for this plz help for me 谁知道这个PLZ帮助我的原因

If you guys have still have problems with this after trying everything (like me) and the wampserver icon remains orange or some internal exception is thrown while trying to put it online, try to do following steps: 如果您在尝试所有方法后(如我)仍然对此有问题,并且wampserver图标仍然显示为橙色,或者在尝试使其联机时抛出了一些内部异常,请尝试执行以下步骤:

  1. Left click the wampserver icon 左键单击wampserver图标
  2. Navigate to Apache->Service 导航到Apache-> Service
  3. Press "Remove service" and then navigate there again and press "Install service" 按“删除服务”,然后再次导航到那里,然后按“安装服务”
  4. Restart wampserver, start/restart all services and try to put it online again 重新启动wampserver,启动/重新启动所有服务,然后尝试使其再次联机
  5. you can check out if the port 80 is open for wampserver by clicking "test port 80" inside the Apache->Service submenu 您可以通过单击Apache-> Service子菜单中的“测试端口80”来检查是否为wampserver打开了端口80

There is apparently some kind of bug or misunderstanding and wampserver didn't knew where the apache is installed 显然存在某种错误或误解,wampserver不知道apache的安装位置

I was having the same problem. 我遇到了同样的问题。 It usually means that either your 通常意味着您的

  • C:\\WINDOWS\\system32\\drivers\\etc\\hosts C:\\ WINDOWS \\ system32 \\ drivers \\ etc \\ hosts
  • C:\\WINDOWS\\system32\\drivers\\etc\\lmhosts.sam C:\\ WINDOWS \\ system32 \\ drivers \\ etc \\ lmhosts.sam

file has been changed by a program or virus. 文件已被程序或病毒更改。

Under Win XP SP2 or SP3, "hosts" should contain 1 entry: 在Win XP SP2或SP3下,“主机”应包含1个条目:

127.0.0.1       localhost

lmhosts.sam should have a load of commented out statements using # . lmhosts.sam应该使用#加载大量注释掉的语句。

Viruses and malware will try to put their own entries in there, so check every IP address or hostname listed. 病毒和恶意软件将尝试在其中放置自己的条目,因此请检查列出的每个IP地址或主机名。 127.0.0.1 is the local host machine, so thats cool. 127.0.0.1是本地主机,所以很酷。

It appears to be a common issue on Win XP SP2. 在Win XP SP2上,这似乎是一个常见问题。

" The very simple solution is to uncheck the “Enable LMHOSTS Lookup” box in the TCP/IP protocol setup (under WINS setting). Here are the steps to do this: “非常简单的解决方案是在TCP / IP协议设置中(在WINS设置下)取消选中“启用LMHOSTS查找”框。这是执行此操作的步骤:

Open “Control Panel” then “Network Connections.” 打开“控制面板”,然后打开“网络连接”。
Right-click on “Local Area Connection” and select “Properties.” 右键单击“本地连接”,然后选择“属性”。
Double-click on the “Internet Protocol (TCP/IP)” line to open the “Properties.” 双击“ Internet协议(TCP / IP)”行以打开“属性”。
On the “General” tab, click the “Advanced” button. 在“常规”选项卡上,单击“高级”按钮。
Select the “WINS” tab and uncheck the “Enable LMHOSTS Lookup” box.” 选择“ WINS”选项卡,然后取消选中“启用LMHOSTS查找”框。”
"

http://www.jennyconnors.com/computers/installing-apache2-and-the-wsasocket-failed-to-open-the-inherited-socket-error http://www.jennyconnors.com/computers/installing-apache2-and-the-wsasocket-failed-to-open-the-inherited-socket-error

我认为该问题与httpd.conf文件有关,将其打开并更改端口80到ex:8081,因为它可能会被其他程序使用,然后尝试重新启动服务并键入http:\\ localhost:8081,您会发现它正在运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM