Upgrade Apache

Test instance runs Apache 2.4.65

Currently performed manually on the test instance

1

Download latest Apache 2.4 version

Go to https://www.apachelounge.com/download/ and download latest version of Apache 2.4 (win64 VS17) as a ZIP archive

2

Extract ZIP

For example using 7-Zip or native Windows extraction tool

3

Stop Apache

Open XAMPP and stop Apache. Alternatively you can stop the Apache service in services.msc

4

Replace Apache

Rename C:\xampp\apache to C:\xampp\apache-old

Move new extracted Apache version to C:\xampp\apache

5

Copy files from apache-old

curl-ca-bundle.crt

Copy C:\xampp\apache-old\bin\curl-ca-bundle.crt to C:\xampp\apache\bin\curl-ca-bundle.crt. (Alternatively download latest from https://curl.se/docs/caextract.html and rename to curl-ca-bundle.crt)

httpd-xampp.conf

Copy C:\xampp\apache-old\conf\extra\httpd-xampp.conf to C:\xampp\apache\conf\extra\httpd-xampp.conf

6

Compare and adjust configuration

Compare files in C:\xampp\apache\conf\ with C:\xampp\apache-old\conf\ and set values in C:\xampp\apache\conf\ accordingly.

Especially four files need special attention:

  • apache\conf\httpd.conf

  • apache\conf\extra\httpd-ssl.conf

  • apache\conf\extra\http-default.conf

    • Timeout 300

  • apache\conf\extra\httpd-vhosts.conf

    • Comment not needed VirtualHosts

7

Start Apache

Open XAMPP and start Apache. Alternatively you can start the Apache service in services.msc

8

Check for any startup errors

Inspect C:\xampp\apache\logs\error.log for any errors or warnigs. Fix them if any present.

Last updated