XAMPP环境搭建与Apache无法启动问题

来源:互联网 发布:怎么开淘宝网店要钱吗 编辑:程序博客网 时间:2024/05/27 02:28

 

一、XAMPP安装

XAMPP的安装非常简单,相信大多数朋友都能很快搭建好,下面重点介绍一下XAMPP安装完成后大家常遇到的一些问题,比如:Apache开启不

了等相关问题。

开发商:ApacheFriends

软件官网:http://www.apachefriends.org/zh_cn/index.html

本文作者从百度软件中心下载:http://rj.baidu.com/soft/detail/12489.html?ald

大小:115.7M 版本:1.8.3

位数:32/64 更新日期:2013-07-29

支持系统:Vista/Win7

新版特征

Apache 2.4.4;
2. MySQL 5.6.11;
3. PHP 5.5.1;
4. phpMyAdmin 4.0.4;
5. FileZilla FTP Server 0.9.41;
6. Tomcat 7.0.41 (with mod_proxy_ajp as connector);
7. Strawberry Perl 5.16.3.1 Portable;
8. XAMPP Control Panel 3.2.1 (from hackattack142)。

二、Apache无法启动问题

XAMPP已经安装成功,但是控制面板上无法启动Apache,最后这个问题终于被发现和解决。特地分享给大家,希望对遇到此类问题的朋友有帮

助。如果你的电脑安装开发软件较多,端口有可能被占用,我初次安装时,端口就被占用,导致无法开启,如图:

无法启动Apache错误提示信息如下:

Initializing Control Panel

13:04:25 [main] Windows Version: Windows 7Ultimate SP1 64-bit

13:04:25 [main] XAMPP Version: 1.8.3

13:04:25 [main] Control Panel Version:3.2.1  [ Compiled: May 7th 2013 ]

13:04:25 [main] Running with Administratorrights - good!

13:04:25 [main] XAMPP InstallationDirectory: "d:\xampp\"

13:04:26 [main] Checking for prerequisites

13:04:34 [main] All prerequisites found

13:04:34 [main] Initializing Modules

13:04:34 [main] Starting Check-Timer

13:04:34 [main] Control Panel Ready

13:04:46 [Apache]     Attempting to startApache app...

13:04:47 [Apache]     Status changedetected: running

13:04:50 [Apache]     Status changedetected: stopped

13:04:50 [Apache]     Error: Apache shutdownunexpectedly.

13:04:50 [Apache]     This may be due to ablocked port, missing dependencies,

13:04:50 [Apache]     improper privileges, acrash, or a shutdown by another method.

13:04:50 [Apache]     Press the Logs buttonto view error logs and check

13:04:50 [Apache]     the Windows EventViewer for more clues

13:04:50 [Apache]     If you need more help,copy and post this

13:04:50 [Apache]     entire log window onthe forums

13:06:07 [main] Deinitializing Modules

13:06:07 [main] Deinitializing ControlPanel

如果出现这种情况,可以查看错误日志/xampp/apache/logs/error.log,要是无任何内容。并且如果信息中包含“This may be due to a

blocked port,missing dependencies”翻译成中文就是“这可能是由于一个阻塞端口,缺少依赖”。由此,我们就可以找到原因了。说明

我们本机同时安装了Apache公司旗下的产品,因为Apache旗下产品大多监听443端口。阿帕奇服务器开启不了,只能说明,443端口

被占用。我们可以采用“360网络查看器”这个软件,查看一下是哪个软件此时占用443端口。如图

一看便知,我本机安装的SVN服务器已经占用了443端口,上图是我已经修改为442。这样两个软件就可以同时在本机使用了。

修改端口的具体方法是:

编辑D:\xampp\apache\conf\extra\httpd-ssl.conf 文件(路径可能不同,视情况而定)将所有的 443 替换成 442 或其它未被占用的端口号。

然后重新启动 APACHE,就可以了,其他软件开启不了,可以采取同样方法操作。




0 0
原创粉丝点击