Why switch between PHP versions when you can use multiple PHP version at a same time with a single xampp installation? With a single xampp installation, you have 2 options:
- Run an older PHP version for only the directory of your old project: This will serve the purpose most of the time, you may have one or two old projects that you intend to run with older PHP version. Just configure xampp to run older PHP version only for those project directories.
- Run an older PHP version on a separate port of xampp: Sometimes you may be upgrading and old project to latest PHP version when you need to run the same project on new and older php version back and forth. Then you can set an older PHP version on a different port (say 8056) so when you go to
http://localhost/any_project/xampp runs php 7 and when you go to
http://localhost:8056/any_project/xampp runs php 5.6.
Lets set it up.
Step 1: Download PHP
So you have php 7 running under xampp, you want to add an older php version to it, say php 5.6. Download the php zip archive from here and extract the files under
Xampp 5.6 Download
Step 2: Configure
c:xamppphp56php.ini file in notepad. If the file does not exist copy
php.ini and open it in notepad. Then uncomment the following line:
Step 3: Configure apache
Download: PHP 5.6.0 (tar.bz2). Check the supported versions page for more information on the support lifetime of each version of PHP. End of Life Dates. So you have PHP 7 running under xampp, you want to add an older PHP version to it, say PHP 5.6. Download the nts (Non Thread Safe) version of PHP zip archive from php.net (see archive for older versions) and extract the files under c:xamppphp56.
- Tips trik cara setting PHP multi-versi (3 versi PHP dalam 1 komputer) di xampp tanpa ribet. skip intro langsung ke menit 4:06Download PHP binaries: https:/.
- XAMPP 5.6.15 Released: 20th Apr 2021 (a few seconds ago) XAMPP 5.6.14 Released: 20th Apr 2021 (a few seconds ago) XAMPP 5.6.2 Released: 20th Apr 2021 (a few seconds ago).
Xampp With Php 5.6
Open xampp control panel, click config button for apache, and click
Apache (httpd-xampp.conf). A text file will open up put the following settings at the bottom of the file:
Note:You can add more versions of PHP to your xampp installation following step 1 to 3 if you want.
Step 4 (option 1):[Add Directories to run specific PHP version]
Now you can set directories that will run in php 5.6. Just add the following at the bottom of the config file to set directories.
Step 4 (option 2):[Run older PHP version on a separate port]
Now to to set PHP v5.6 to port 8056 add the following code to the bottom of the config file.
Hon ignition 2.0 office chair. Taking care of business has never been easier or more pleasurable than when you're sitting in this HON Ignition mid-back 4-way stretch mesh back task chair. The advanced synchro-tilt control mechanism is the best HON has to offer, and reclines just the way you like. Taking care of business has never been easier or more pleasurable than when you're sitting in this HON Ignition 2.0 Mesh Back Task Chair with Adjustable Arms and Adjustable Lumbar Support, in Black. The seat back features breathable 4-way stretch mesh that cradles the spine for ergonomic comfort.
Finish: Save and Restart Apache
Xampp Php Versions
Save and close the config file, Restart apache from xampp control panel. If you went for option 2 you can see the additional port(8056) listed in your xampp control panel.
Download Xampp Php 5.6