今天在win7的电脑上装了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,如下图:
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就应该正常工作了
======= ?2011-7-31 更新 =========
若出现“
XAMPP terminating worker thread 0” 的busy提示
请打开你的IIS,然后停止IIS里的网站就OK了!
在xampp control panel中点setup打开命令界面,不对啊,没有 ❓ 怎么回事儿啊 ❓ ❓
有的,你仔细看下panel的右边,最右边一竖行有“shell” “setup”等按钮,你直接点击setup就可以进入cmd界面了!
你好!请问你的xampp control panel是什么版本?
我在XAMPP官方网站上下载的,没有shell,setup,port-check3个选项……
你也叫小星。。。
我的xampp是xampp-win32-1.7.4版本,也没有 shell,setup按钮
网上很多人都说1.7.4版本的没有setup按钮,这应该是版本的问题,1.7.3上有!
哈哈^重名啊,猿粪~~
好吧,我再看看其他解决方案。必须把端口改了,我的skype也用着80端口呢!