Windows7上IIS7.5与XAMPP端口冲突的解决方法

来源:网络时间:2011-05-24 15:03:55

最近在Windows7的电脑上装了XAMPP准备做wordpress主题,但是打开127.0.0.1直接打开IIS


看了下Apache没有运行,显示busy,然后想到可能是80端口被占的问题,

 

解决方案:通过修改apache/conf/目录下httpd.conf文件中的端口号来实现正常启动apache
有两个地方需要修改

 

1: #Listen 0.0.0.0:80
#Listen [::]:80
Listen 80
2: ServerName localhost:80

 

将80改为8000,然后重启Apache,还是不行,依然是busy,如下图:

 

XAMPP

 

IIS,迅雷等工具未启动,而apache就是启动不了,xampp中集成的其他如mysql等都可以正常启用

 

此时你如果再点击start按钮,在error.log中会发现如下提示

 

[Wed Dec 29 11:38:55 2010] [notice] Digest: generating secret for digest authentication …
[Wed Dec 29 11:38:55 2010] [notice] Digest: done
[Wed Dec 29 11:38:55 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured — resuming normal operations


[Wed Dec 29 11:38:55 2010] [notice] Server built: Nov 11 2009 14:29:03
[Wed Dec 29 11:38:55 2010] [crit] (22)Invalid argument: Parent: Failed to create the child process.
[Wed Dec 29 11:38:55 2010] [crit] (OS 6)句柄无效。 : master_main: create child process failed. Exiting.
[Wed Dec 29 11:38:55 2010] [notice] Parent: Forcing termination of child process 36

 

提示的大概意思就是被强行关闭。


解决方案:

 

1:在dos下运行netstat -ano


2:在xampp control panel中点setup打开命令界面,


3:选择6 enable mob_perl


4:重新启动xampp,此时运行http://localhost就应该正常工作了

 

 

文章内容来源于网络,不代表本站立场,若侵犯到您的权益,可联系我们删除。(本站为非盈利性质网站) 联系邮箱:rjfawu@163.com
多特网友 2013-10-08 21:25:13 回复
擦擦,改个8086不就OK了
多特网友 2013-02-25 12:20:09 回复
apache打开就自动关闭了,怎么解决
多特网友 2013-02-25 12:20:09 回复
apache打开就自动关闭了,怎么解决
多特网友 2013-10-08 21:25:13 回复
擦擦,改个8086不就OK了