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

SyntaxFix
1 min readSep 14, 2022

I want to downgrade php version from 7.1.1 to 5.6 in xampp 7.1.1. But I can’t find any option.

Steps to downgrade PHP version

I think the most safest downgrade path from PHP7 to PHP5 in Xampp is:

  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.

Full story is, visit SyntaxFix

--

--

SyntaxFix

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