如何在Windows服务器上升级Apache?
我刚刚将我们的网络服务器从 PHP 5.3.6 升级到 5.3.10,现在我想将 Apache 从 2.2.17 升级到 2.2.22(在 Windows Server 上)。我该如何以良好的方式解决这个问题(在实时网络服务器上)?短暂的停机时间是可以的,但不能太多。
Apache 是通过 MSI 安装程序安装的,我不确定如何以最少的停机时间安全升级。 我只需下载最新的安装程序并安装即可吗?那我的配置文件呢?我认为不可能将两个实例“相邻”安装?或者是吗?
I have just upgraded our webserver from PHP 5.3.6 to 5.3.10, and I now want to upgrade Apache as well from 2.2.17 to 2.2.22 (on a Windows Server). How do I go about this in a good way (on a live webserver)? A little downtime is alright, but not too much.
Apache is installed via an MSI installer and I'm not sure how to upgrade safely with the least downtime.
Do I just download the latest installer and install that? And what about my config files? I don't think it's possible to have both instances installed 'next to each other'? Or is it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于搜索此内容的其他人,我发现从“添加/删除程序”卸载旧 Apache(在我的例子中为 2.2.22)并安装新版本(在我的例子中为 2.2.24)会保留所有以前的设置。
我们已经锁定了 httpd.conf 文件,并有一个应用程序可以修改/添加“htdocs”目录中的文件。
卸载并重新安装后,所有这些文件均保持不变,并反映了新版本的 Apache Server。
For anyone else who searches for this, I found that uninstalling the old Apache (in my case, 2.2.22) from Add/Remove Programs and installing the new version (in my case, 2.2.24) kept all the previous settings.
We had locked down the httpd.conf file and had an application that modified/added files in the "htdocs" directory.
Upon uninstalling and re-installing, all of these files were left unchanged and the new version of Apache Server is reflected.
我今天在 Windows Server 2012R2 上做到了,apache 是从“源”安装的(安装程序未使用 - 更新至 2.4.55):
1.停止 apache 服务
2.重命名 apache 目录(来自
C:\Apache24 到
C:\Apache24-old
)3.从 apache 网站下载的 zip 存档中提取
Apache24
文件夹到原始位置(C:\
)4.将先前安装的conf文件夹复制到解压的文件夹中(将
C:\Apache24-old\conf
复制到C:\Apache24\ 5.(可选)
,如果您有任何证书,请将其从
C:\Apache24-old\
复制到C:\Apache24
6.启动apache服务,不行面临的问题
I did it today on windows server 2012R2, apache was installed from "source" (installer was not used-updated to 2.4.55):
1.Stop apache service
2.Rename apache directory (from
C:\Apache24
toC:\Apache24-old
)3.Extract
Apache24
folder from zip archive downloaded from apache web site to original location (C:\
)4.Copy conf folder from previous installation to the extracted folder (Copy
C:\Apache24-old\conf
toC:\Apache24\conf
-overwrite)5.(Optional), if you have any certs copy it from
C:\Apache24-old\
toC:\Apache24
6.Start apache service,no issues faced
下载最新版本的 apache 安装程序。
进行必要的配置更改。
在实时服务器以外的其他端口上运行它。
如果一切正常,请更正端口号并更换。
这确实需要一点休息时间。
Download a latest version of apache installer.
Make the necessary config changes.
Run it on a different port, other than your live server.
If things work well, correct the port number, and replace.
It will really take a little down-time.