Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

xampp

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. PHP info from xampp

like image 486
Shiblee Sadik Avatar asked Mar 29 '17 07:03

Shiblee Sadik


1 Answers

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.

  • Before any changes, to verify changed Apache configs, you can compare both Xampp release folder at .\xampp\apache\conf with tools like Meld.

  • I should note that please download PHP 5 and 7 Xampp packages released at the same time.

Notify me if I miss something.

like image 176
Lanti Avatar answered Sep 16 '22 20:09

Lanti