最近在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,如下图:
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就应该正常工作了