How to downgrade php from 7.1.1 to 5.6 in xampp 7.1.1?

  1. Download a self-packaged version of Xampp with PHP5 from here (as of today this is xampp-win32-5.6.37-0-VC11.zip).
  2. Rename the php folder to php7 in Xampp.
  3. Now copy the php folder from xampp-win32-5.6.37-0-VC11.zip into your Xampp install folder.
  4. Make a backup from .\xampp\apache\conf\extra\httpd-xampp.conf file.
  5. Replace this file from xampp-win32-5.6.37-0-VC11.zip as well.
  6. This way the config files (including php.ini) has settings from the Xampp team.
  7. Before any changes, to verify changed Apache configs, you can compare both Xampp release folder at .\xampp\apache\conf with tools like Meld.
  8. I should note that please download PHP 5 and 7 Xampp packages released at the same time.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
SyntaxFix

SyntaxFix

Curated Solutions On Popular Questions — On All Programming Languages, Cloud Computing, Tools etc