Reputation: 4415
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?
Upvotes: 4
Views: 38471
Reputation: 1243
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
to C:\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
to C:\Apache24\conf
-overwrite)
5.(Optional), if you have any certs copy it from C:\Apache24-old\
to C:\Apache24
6.Start apache service,no issues faced
Upvotes: 2
Reputation: 76
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.
Upvotes: 6
Reputation: 6499
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.
Upvotes: 0