
simply rename the folders), at least until you can confirm that everything is working the way you want it to.īe aware that if you have Apache installed as a service, you will likely need to stop the service (as necessary), then uninstall/reinstall the service via the XAMMP interface. One suggestion I would make for both PHP and Apache is that you keep the original XAMMP versions (i.e. Thread Safe (TS) versions are intended for Apache and are the only distributions to include e.g. Note that Non-Thread Safe (NTS) versions of PHP are intended for IIS. LoadModule php5_module "C:/Programs/XAMMP/php/php5apache2_4.dll"

LoadFile "C:/Programs/XAMMP/php/libpq.dll" LoadFile "C:/Programs/XAMMP/php/php5ts.dll" # LoadModule php7_module "C:/Programs/XAMMP/php/php7apache2_4.dll" # LoadFile "C:/Programs/XAMMP/php/libpq.dll" nf (Partial) # LoadFile "C:/Programs/XAMMP/php/php7ts.dll" When installing your older version of PHP, you will also need to update XAMMP\apache\conf\extra\nf to make the proper references to PHP 5 rather than PHP 7 (there are about 3 lines to update):Įx. Apache 2.4.38 and Apache 2.4.39 should be close enough that you can (likely) replace the entire conf folder in your downloaded version of Apache with XAMMP's version.

It holds the actual configuration for Apache, as well as some extra files for XAMMP specifically. Pay attention to the conf folder as well. In the main apache directory, these include: You will need to copy over some files and folders from your original XAMMP Apache installation (those that don't otherwise exist in the version of Apache you downloaded). The process with Apache isn't quite "drag and drop". Apache 2.4.38 built with VC11 and use it in place of Apache 2.4.39 built with VC15 (which is the current default for XAMMP). So Apache can (technically) be swapped out in a similar fashion to PHP. XAMMP is essentially a front-end to what are normally separate programs. There is no resource I can find on how to install older versions of Apache to match the PHP version.
