apache无法启动

波丶 发布于 2012/02/01 16:07
阅读 3K+
收藏 0

1 在"网上邻居"上 点右键,菜单上选"属性(R)"。出来"网络连接"窗口,在"本地连接"上点右键,菜单中点"属性(R)"。出来"本地连接 属性"面板,在"此链接使用下列项目"中找到:"Internet 协议 (TCP/IP)",并点击它。在弹出的"Internet 协议 (TCP/IP) 属性"面板上,点击"高级(V)..."按钮。"高级 TCP/IP 设置"面板上点"WINS"选项标签,去掉"启用 LMHOSTS 查询(L)"前面的勾,点"确定"按钮。
2 打开"控制面板",点击"Windows 防火墙",点击"高级"选项标签,选择"本地连接",并点击旁边的"设置(T)..."按钮。在服务选项中找到"安全 Web 服务器(HTTPS)",并把它勾选上,点"确定"按钮。。。等等方法都试过了,还是无法启动,所以xampp还没运行成功。 求解

 

加载中
0
皮总
皮总

我似乎知道原因了,不是端口占用 , 测试一下告诉你结果

将 D:/xampp/apache/conf/httpd.conf 的第 463 行注释掉

# Perl settings
# Include "conf/extra/perl.conf"

 

0
皮总
皮总
把 apache 的日志贴出来看下? C:\XAMPP\apache\logs\error.log
0
波丶
波丶
[Wed Feb 01 15:34:10 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:34:10 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...
[Wed Feb 01 15:34:22 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:34:22 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...
[Wed Feb 01 15:36:08 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:36:08 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...
[Wed Feb 01 15:41:49 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:41:49 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...
[Wed Feb 01 15:41:54 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:41:54 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...
[Wed Feb 01 15:44:02 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:44:02 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...
[Wed Feb 01 15:47:28 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:47:28 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:8081, exiting...
[Wed Feb 01 15:51:09 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:51:09 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:8081, exiting...
[Wed Feb 01 15:51:19 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 15:51:19 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:8081, exiting...
[Wed Feb 01 16:04:21 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 16:04:21 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:8081, exiting...
[Wed Feb 01 16:10:43 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed--compilation aborted at D:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at D:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed--compilation aborted at D:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Feb 01 16:10:43 2012] [error] Can't load Perl file: D:/xampp/apache/conf/extra/startup.pl for server localhost:8081, exiting...

0
往事白云边
往事白云边
端口占用?
0
波丶
波丶

引用来自“往事白云边”的答案

端口占用?
改了,而且80端口也没有在使用
0
波丶
波丶
绿色版和安装版的都试过了,apache还是没能启动。
0
波丶
波丶

引用来自“鲍平”的答案

我似乎知道原因了,不是端口占用 , 测试一下告诉你结果

将 D:/xampp/apache/conf/httpd.conf 的第 463 行注释掉

# Perl settings
# Include "conf/extra/perl.conf"

 

  3Q
0
__eric__
__eric__

xampp官方的bugs库中提出了具体的解决方案:

就是在xampp安装目录\apache\conf\extra\目录下的httpd-perl.conf文件中的LoadModule perl_module modules/mod_perl.so的代码前增加以下代码:PerlSwitches -T

参考: http://www.laokboke.net/2011/05/01/solution-of-error-starting-apache-on-xampp/

返回顶部
顶部