|
在官网下载Apache Httpd服务器需要在http://httpd.apache.org/下载 |
一派掌門 二十級 |
在 http://www.apache.org/首页下方的Apache Project List栏目中的By Name栏下,就有一个“HTTP Server”的链接,指向 http://httpd.apache.org/不要点击页面上方的Download链接转向 http://www.apache.org/dyn/closer.cgi,那里打开的镜像站点都是一些乱七八糟的文件夹,我也看不懂是什么
|
一派掌門 二十級 |
Apache httpd 2.4.16 Released 2015-07-15
The Apache Software Foundation and the Apache HTTP Server Project are pleased to announce the release of version 2.4.16 of the Apache HTTP Server ("Apache"). This version of Apache is our latest GA release of the new generation 2.4.x branch of Apache HTTPD and represents fifteen years of innovation by the project, and is recommended over all previous releases. This version of Apache is principally a security and bug fix release.
This version of httpd is a major release of the 2.4 stable branch, and represents the best available version of Apache HTTP Server. New features include Loadable MPMs, major improvements to OCSP support, mod_lua, Dynamic Reverse Proxy configuration, Improved Authentication/Authorization, FastCGI Proxy, New Expression Parser, and a Small Object Caching API.
Download | New Features in httpd 2.4 | Complete ChangeLog for 2.4 | ChangeLog for just 2.4.16
|
|
一派掌門 二十級 |
Apache官网已经说了,他那里只提供源码包,不提供编译好的安装包。 Windows版本的Apache安装包(非源码包)可以在下面的网站里下载: http://www.apachehaus.com/cgi-bin/download.plx
|
|
一派掌門 二十級 |
我下载的是httpd-2.4.16-x64.zip这个文件,大小为7,167.8 KB。因为这是用VC9编译的,所以要安装好相关的运行库。
|
|
一派掌門 二十級 |
回复:4楼 下载后解压出来不是安装包,而是安装好后的程序文件夹的打包。。。囧! 估计是因为官网不提供编译版的程序包后,没人能做出原来那种安装包了。 因此,安装可以看这个网页: http://jingyan.baidu.com/article/29697b912f6539ab20de3cf8.html
|
|
一派掌門 二十級 |
6樓
發表于: 2015-10-10 09:47
提示一下,如果把下载后的文件解压到C:/Apache24下,那么httpd可以直接正常运行。但是如果解压的目录是C:/Web/Apache24的话,那就得改配置文件httpd.conf了,否则httpd会报错不能运行。在文件头部有一个Define SRVROOT "/Apache24",引号那里改成"/Web/Apache24"就行了
默认的网站目录是C:/Web/htdocs,建议不要改动(DOCUMENT ROOT指定)。要添加其他盘的目录(比如D:/php)的话,建议建立一个VirtualHost(虚拟主机)或者直接加alias。
|
|
一派掌門 二十級 |
7樓
發表于: 2015-10-10 09:53
配置文件中的SRVROOT所指向的盘符默认就是安装文件夹所在盘符(这里是C盘),所以无需再引号中额外指定。默认的配置文件设置就是要求把文件解压到C:/Apache24的,只不过我为了方便起见改变了目录,放在了web文件夹下,和php的放在了一起,这样一来就得修改配置文件。
另外昨天晚上我试过了,把安装文件夹的路径加到path环境变量中是没用的,因为安装VS的时候path中就有另一个文件夹里面也有modules文件夹。
|
|
一派掌門 二十級 |
8樓
發表于: 2015-10-10 09:54
在2010年的时候,我曾经在apache官网上下载过安装包,但是可惜的是现在2015年官网只有源码包了,他不做安装包了。第三方也只能编译后做出压缩包,他们没法做安装包。
|
|
一派掌門 二十級 |
9樓
發表于: 2015-10-10 09:55
在天空软件站也可以下载Apache httpd2.2的安装包。
|
|
一派掌門 二十級 |
10樓
發表于: 2015-10-10 09:56
成功启动httpd后,接下来就是终止httpd,然后把它安装成系统服务。不能总是让黑窗口在那里显示著
|
|
一派掌門 二十級 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd C:/Web/Apache24/bin
C:\Web\Apache24\bin>httpd -k install Installing the 'Apache2.4' service The 'Apache2.4' service is successfully installed. Testing httpd.conf.... Errors reported here must be corrected before the service can be started.
C:\Web\Apache24\bin>
用管理员权限打开cmd,然后运行httpd -k install就可以安装成系统服务了。然后再打开计算机管理 -> 系统服务,启动那个名叫Apache2.4的服务,成功!
|
|
一派掌門 二十級 |
因为我下载的php程序包是php-5.6.14-Win32-VC11-x86,是用Visual Studio 2012 (VC11)编译的。所以需要去网上下载VS2012的运行库才行。
|
|
一派掌門 二十級 |
回复:6楼 当然如果怕麻烦的话要直接改DOCUMENT ROOT也行,例如改成其他盘符的文件夹E:\php
|
|
一派掌門 二十級 |
|
|
一派掌門 二十級 |
一个简单的配置Alias别名的示例: <IfModule alias_module> Alias /test D:/Codes/PHP/test </IfModule> <Directory "D:/Codes/PHP/test"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> 这样一来,访问http://localhost:81/test/example.php(我现在定义的端口是81,80被IIS占了),读取的文件就是D:/Codes/PHP/test/example.php。 AllowOverride All,这是开启URL重写的。
|
|
一派掌門 二十級 |
16樓
發表于: 2024-10-11 11:32
支持tls1.3的最低apache版本是发布于2020年3月底的2.4.43。 Apache HTTP Server version 2.4.43 or newer is required in order to operate a TLS 1.3 web server with OpenSSL 1.1.1.
|
|
一派掌門 二十級 |
17樓
發表于: 2024-10-11 11:37
支持tls1.2的最低apache版本是发布于2012年9月的2.2.23。 In order to use TLSv1.1 and TLSv1.2 for SSLProtocol, you need at least version 2.2.23 (in addition to OpenSSL 1.0.1 or higher).
|
|
一派掌門 二十級 |
18樓
發表于: 2024-10-11 11:42
目前最新版本是2024年7月发布的2.4.62版本。
|
|