Apache XAMPP Fails to start under Windows XP
Apache XAMPP Fails to start under Windows XP
I’ve been installing XAMPP a hundred times before since 2005 and back then everything was running well. But yesterday was kind of exceptional, I got error that I couldn’t solved till I found this great solution from apachefriends. Before I gave you the solution, let me show you what I’ve done to get this thing right.
Case:
- Installing XAMPP version: win32-1.7.7
After installing it and trying to start from XAMPP control panel, I got message
“Busy… Apache service started”
but of course the Apache service wasn’t. Then I checked the error log of Apache C:\xampp\apache\logs\error.log I found this message:
[Wed Sep 19 16:36:59 2012] [error] Attempt to reload DynaLoader.pm aborted.\nCompilation failed in require at C:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nBEGIN failed–compilation aborted at C:/xampp/perl/site/lib/ModPerl/Const.pm line 18.\nCompilation failed in require at C:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nBEGIN failed–compilation aborted at C:/xampp/perl/site/lib/Apache2/Const.pm line 18.\nCompilation failed in require at C:/xampp/apache/conf/extra/startup.pl line 9.\nBEGIN failed–compilation aborted at C:/xampp/apache/conf/extra/startup.pl line 9.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Sep 19 16:36:59 2012] [error] Can’t load Perl file: C:/xampp/apache/conf/extra/startup.pl for server localhost:8080, exiting…
The last shot, I opened the services window from Control Panel\Administrative Tools\Services and started the apache service directly, voila.. I got this error:
Windows could not start the Apache2 on Local Computer. For more information, review the System Event Log. If this is a non-Micorsoft service, contact the service vendor, and refer to service-specific error code 1.
Either one, from my previous experiences, I could handle this problem by doing one or two things below:
- Check the firewall, deactivate it or add exception for localhost or 127.0.0.1, so it won’t block this address. OR
- Check the IIS service, if it’s working, stop it, OR
- Change the port number of Apache. Go to C:\xampp\apache\conf\httpd.conf
Search:
- “Listen 80″ and modify to “81″ or “8080″
- “ServerName localhost:80″ follow the prev one.
OR - Change the virtual host number of Apache. Go to C:\xampp\apache\conf\extra\httpd-ssl.conf
Search:
- “<VirtualHost _default_:443>” modify to “4499″
- “ServerName localhost:443″ follow the prev one.
Done with those modifications, I re-started the XAMPP service, but still I couldn’t access my localhost from any browser.
Then I tried to find any solution from uncle Google and most readers suggest solutions mostly the same. I’ll list them here so you can try them all to find which one is the best and can fix your problem.
- This is the most command thing to do when you are desperate, UNINSTALLING AND INSTALLING your XAMPP application and restart your computer.
Is it working? No?
- Do you have Skype or NOD32 Antivirus or other Google Apps running? If yes, for skype and google apps, close those application (shut it down) and for NOD32, you can go to advance set-up then un-chek web access protection for HTTP, HTTPS. Try to start you apache service.
Still not working?
- Go to command prompt (CMD) to check whether port 80 is still used by other application or not by typing this: netstat -ao -p tcp. Is there any IP that using that port? If yes, keep the PID number and go to Task Manager\Processes, do you see PID column? If you don’t, click menu:View –> Select Column, check the Process Identifier (PID). Still keep the PID number? Find it in the processes list and kill if you found. Try to start you apache service again.
Still not working?
- My last shot and this solution works for me.
Search for perl.conf file in C:\xampp\apache\conf\extra\perl.conf, open this file and you’ll see this:
LoadFile “C:/xampp/perl/bin/perl510.dll”
LoadModule perl_module modules/mod_perl.so
PerlPostConfigRequire “C:/xampp/apache/conf/extra/startup.pl”
Add this “PerlSwitches -T”after the second line, so it becomes like this: LoadFile “C:/xampp/perl/bin/perl510.dll”
LoadModule perl_module modules/mod_perl.so
PerlSwitches -T
PerlPostConfigRequire “C:/xampp/apache/conf/extra/startup.pl”Try to start you apache service again, voila….. it does work right? no? -__- it works for me.
Okay, that’s all I got, if your apache is still not working, let’s ask uncle Google again. Special thanks toapachefriends.
Apache XAMPP Fails to start under Windows XP的更多相关文章
- Apache -- XAMPP Apache 无法启动原因及解决方法
XAMPP Apache 无法启动原因1(缺少VC运行库): 这个就是我遇到的问题原因,下载安装的XAMPP版本是xampp-win32-1.7.7-VC9,而现有的Windows XP系统又没有安装 ...
- 如何在xampp中运行php文件 (WINDOWS)
from:http://blog.sina.com.cn/s/blog_5e87822501011os2.html 入门: 如何在xampp中运行php文件 (WINDOWS) 安装XAMPP启动ap ...
- xampp安装和使用:windows和linux使用安装微擎小程序
1.官网下载xampp XAMPP:Apache+MySQL+PHP+PERL,适用于windows+linux+macos x+Solaris等多系统使用 官网地址:https://www.apac ...
- windows XP上实现python2.7.5和python3.4.3共存
windows XP上实现python2.7.5和python3.4.3共存过程记录: 1. 首先安装python2.7.5和python3.4.3,两个版本安装顺序不分前后; 2. 检查系统环境变量 ...
- windows XP 神key
微软内部泄露的XP的CD-KEY和无限次激活码!亲测!!! Windows XP专业版最新注册码HTXH6-2JJC4-CDB6C-X38B4-C3GF3RT4H2-8WYHG-QKK6K-WWHJ2 ...
- Windows XP系统下添加任务计划常出现问题解决办法
Windows XP系统下添加任务计划常出现问题解决办法 计划任务就是让电脑在指定的时间内执行指定的动作(计划动作),这些动作可以是一个程序,也可以是一个批处理,但是至少是可以运行的(通俗一些就是双击 ...
- win7下安装和使用Windows XP Mode
如果想在电脑中安装多个操作系统有几种方法: 1.安装虚拟机,继而在虚拟机中安装操作系统.虚拟机个数就相当于电脑个数,常用的虚拟机软件有VMVare,VMVare功能齐全,但是安装文件较大. 2.如果你 ...
- 【转】如何使用VS 2013发布一个可以在Windows XP中独立运行的可执行文件
问题描述: 用VS2013写好一个程序,在本机上运行一切正常.但是如果直接把exe文件放到另一台机器上用,则会出现: Windows XP:不是一个正常的win32程序 Window 7:缺少msvc ...
- Linux与Windows xp操作系统启动过程
Linux启动过程: 第一步,加载BIOS,当你打开计算机电源,计算机会首先加载BIOS信息,BIOS信息是如此的重要,以至于计算机必须在最开始就找到它.这是因为BIOS中包含了CPU的相关信息.设备 ...
随机推荐
- c语言字符数组和指针的经典用法
1.字符数组 许多情况下,对字符串的处理使用字符数组会更加方便,比如: 我觉得不改变字符串的原有顺序,对字符串进行删除等操作时,使用字符数组效果会更好. eg:给定字符串(ASCII码0-255)数组 ...
- TIFF6 Packbit algorithm
“Packbits” from ISO 12369 参考TIFF 6.0 Specification,点击TIFF, Version 6.0: @Section 9: PackBits Compres ...
- JavaScript解析机制
JavaScript是一种解释型语言,按照<script>块儿来预编译和执行. JavaScript解释器在预编译阶段,先预声明变量,再预声明函数.在执行阶段,进行变量赋值,和函数执行. ...
- php编译安装configure完全配置够日常所用功能
php编译安装configure完全配置够日常所用功能 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/p ...
- bzoj2597: [Wc2007]剪刀石头布
Description 在一些一对一游戏的比赛(如下棋.乒乓球和羽毛球的单打)中,我们经常会遇到A胜过B,B胜过C而C又胜过A的有趣情况,不妨形象的称之为剪刀石头布情况.有的时候,无聊的人们会津津乐道 ...
- gcc链接g++编译生成的静态库和动态库的makefile示例
使用c++开发程序或者库时,将库提供给其他人使用. 然而使用者是使用c开发的程序,链接g++编译生成的库时,于链接gcc生成的库,有所不同. 首先是静态库,以链接g++编译生成的libmylib.a为 ...
- linux系统下root用户和普通用户的时区不一致
1. 发现这个问题是在root下执行 date -R 和 普通用户下执行 date -R,发现时区不一致 2. 在一些linux机器下,发现是一致的 3. 什么原因呢?找了半天,最后发现 时区一致的机 ...
- 【技术贴】第二篇 :解决使用maven jetty启动后无法加载修改过后的静态资源
之前写过第一篇:[技术贴]解决使用maven jetty启动后无法加载修改过后的静态资源 一直用着挺舒服的,直到今天,出现了又不能修改静态js,jsp等资源的现象.很是苦闷. 经过调错处理之后,发现是 ...
- 【Java】Web 服务编程技巧与窍门: 在 UDDI 注册中心为 Web 服务注册开发 UDDI Java 应用程序
本技巧建立了一个使用统一描述.发现和集成 (Universal Description, Discovery, and Integration,UDDI) 来注册应用程序级消费的 Web 服务实例.作 ...
- 关于判断变量是否为null的顺序问题。
if("y".equals(other)){ } 其中,other字符串变量可能为Null,可以加一个null判断或者将常量写在前面,变量写在equals后面.如果将变量other ...