zoukankan      html  css  js  c++  java
  • 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:webApache
    3.修改配置文件:D:webApacheconfhttpd.conf.
        修改路径(替换 c:/Apache24 为 d:/web/Apache).
        找到:ServerName www.example.com:80  下面加一行:ServerName localhost
    4.运行。测试:浏览器打开 127.0.0.1。
        1.双击:D:webApacheinhttpd.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网站中,具体介绍搭建方式。

  • 相关阅读:
    【codevs1227】方格取数2(最大流费最大流-模板
    【ZJOI2008】【BZOJ1033】杀蚂蚁(占坑待填
    python基础学习1-流程控制和判断
    python基础学习1-变量定义赋值,屏幕输入输出
    Jzoj5237 最长公共子序列
    Jzoj5236 利普希茨
    [置顶] 欢迎使用CSDN-markdown编辑器
    Jzoj5235 好的排列
    Jzoj5234 外星人的路径
    Jzoj5231 序列问题
  • 原文地址:https://www.cnblogs.com/osfipin/p/4302757.html
Copyright © 2011-2022 走看看