logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: how do you update
Author
sailor



Joined: 17 Apr 2015
Posts: 82
Location: US

PostPosted: Mon 26 Aug '19 22:57    Post subject: how do you update Reply with quote

I've found that updating can be somewhat scarey.

1) copy new apache into like d:\installs and copy httpd.conf d:\apache24 into new d:\install replacing new httpd.conf
2) stop apache
3) backup d:\apache24 to new directory
4) copy and replace new apache into d:\apache24 (replacing all)
5) start apache

I prefer the above in case I miss some dll or so, but down time may be longer.

I used to:
1) put new apache in d:\apache_new
2) ensure I have all bin\dlls and modules\so in d:\apache_new
3) copy httpd.conf and other conf to d:\apache_new
4) stop existing apache
5) rename apache24 to apache24_b4_20190826
6) rename d:|apache_new as d:\apache24
7) start apache with fingers cross.

The above reduces down time, but perhaps I miss a dll or so.

What's your preferred method?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 27 Aug '19 3:44    Post subject: Reply with quote

Exclamation Backing up the old is NEVER a bad idea, ever.

The files you don't want overwritten are all located in Apache's /conf & /htdocs, just leave them be.

Your example uses [old]d:\apache24 & [new]d:\install, so I'll use these also.

The files that MUST be updated (overwritten)
xcopy /s /v /y d:\install\bin\*.* d:\apache24\bin\*.* (xcopy tp pickup \bin\iconv\*.*)
copy /v /y d:\install\modules\*.* d:\apache24\modules\*.*

Optional
xcopy /s /v /y d:\install\manual\*.* d:\apache24\manual\*.* (for manual updates)

If you build 3rd party modules you need the /include & /lib folders.

Read the CHANGES_2_4_x file that comes with the new, if there are any changes to /conf/charset.conv, /conf/magic, /conf/mime-types files the changelog should mention it. These 3 specific files can be overwritten.

Any other files that have had changes to (like to SSLCipherSuite in /extra/httpd-ssl.conf) or additions to others just manually modify/add them into your existing files.
Back to top
sailor



Joined: 17 Apr 2015
Posts: 82
Location: US

PostPosted: Tue 10 Sep '19 12:22    Post subject: good ideas Reply with quote

I like idea of putting dlls outside of main package in separate folder. I've been bitten by that.

I have ssl certs to separate directory, keeping as much as possible out of the main Apache folder.
Back to top


Reply to topic   Topic: how do you update View previous topic :: View next topic
Post new topic   Forum Index -> Apache