Windows安装apache2.4

The primary Windows platform for running Apache 2.4 is Windows 2000 or later. Always obtain and install the current service pack to avoid operating system bugs.

官方说明

The Apache HTTP Server Project itself does not provide binary releases of software, only source code. Individual committers may provide binary packages as a convenience, but it is not a release deliverable.

If you cannot compile the Apache HTTP Server yourself, you can obtain a binary package from numerous binary distributions available on the Internet.

Popular options for deploying Apache httpd, and, optionally, PHP and MySQL, on Microsoft Windows, include:

我的操作 吠品整理。

使用win 2003系统 只支持到VC9。

下载地址:http://www.apachelounge.com/download/win32/binaries/httpd-2.4.12-win32-ssl_0.9.8-VC9.zip

说明:Apache 2.4.12 ,IPv6 Crypto apr-1.5.1 apr-util-1.5.4 apr-iconv-1.2.1 openssl-1.0.1l zlib-1.2.8 pcre-8.36 libxml2-2.9.2 lua-5.1.5 expat-2.1.0,build with OpenSSL 0.9.8ze。

安装步骤:

1.安装 vc9_x86(Microsoft Visual C++ 2008 x86) 运行库
2.下载  httpd-2.4.12-win32-ssl_0.9.8-VC9.zip   解压到 D:\web\Apache
3.修改配置文件:D:\web\Apache\conf\httpd.conf.
    修改路径(替换 c:/Apache24 为 d:/web/Apache).
    找到:ServerName www.example.com:80  下面加一行:ServerName localhost
4.运行。测试:浏览器打开 127.0.0.1。
    1.双击:D:\web\Apache\bin\httpd.exe
    2.进入cmd运行相关指令。启动:httpd.exe,服务启动:httpd.exe -k install。
 
5.更多配置。
    a.日志文件地址:ErrorLog "logs/error.log" 改成 ErrorLog "../logs/error.log";CustomLog "logs/access.log" common 改成 CustomLog "../logs/access.log" common
    b.网站默认目录地址。d:/web/Apache/htdocs 改成 d:/web/www
    c.其他

未完待续。。。

目前教程整理在xwamp网站中,具体介绍搭建方式。

转载于:https://www.cnblogs.com/osfipin/p/4302757.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值