Xampp Php 5.4

  1. Xampp Php 5.4.31
  2. Xampp Php 5.4.3

The last version of XAMPP to be based on PHP 5.4 appears to have been the XAMPP 1.8.2-x series, culminating in version 1.8.2-6. But it also seems that 1.8.2 series used MySQL 5.5 not 5.6.The first version of XAMPP to do that seems to have been 1.8.3-x, with the final version of.

PHP 5.4.11 and 5.3.21 were released on January 17, 2013. There have been quite a few changes since PHP 5.4.8 and 5.3.18. The complete official changelog can be found here. I believe PHP 5.4.12 and 5.3.22 will be released soon and I will try to compile and post them as soon as they are released. PHP 5.4 will be the last series to support Windows XP and Windows 2003. We will not provide binary packages for these Windows versions after PHP 5.4. For users upgrading from PHP 5.3 there is a migration guide available here, detailing the changes between PHP 5.3 and PHP 5.4.0. For a full list of changes in PHP 5.4.0, see the ChangeLog. Participate in discussions with other Treehouse members and learn. Updated main components PHP to 5.4.16, MySQL to 5.5.32, Apache to 2.4.4, phpMyAdmin 4.0.4 Updated Linux and Mac OS X versions of XAMPP, which had not been updated for a while. Moving forward, we aim to keep them up to date and perform releases at the same time as the Windows version.

Sometimes itโ€™s beneficial to run several php versions in parallel on one local xampp (WIN) installation.
At the end we are running the main php version as module and the side-versions as cgi.

Working as seen today, here is a step by step list
Do it on your own risk & create a backup before playing ๐Ÿ˜‰

Tested XAMPP: xampp-win32-7.2.1-0-VC15

1. Install XAMPP with the PHP Version you want to run mainly, e.g. PHP 7.2 => resides by default in Installpathxamppphp
2. Copy other php Versions in Installpathxampp, eg PHP 5.4 in => Installpathxamppphp5
If you are lazy like me, just grab the other php folder from old xampp installations, => beneficial since the used dlls are already in the right place
3 Make sure every php version on her own has a working php.ini.

use individual error logs per version:

point to the correct extensions folder:

3. edit the following files

add codelines at the bottom of the file, the phpvhosts.conf will house our custom config

find and comment the loading lines for the php module: depending on your php version

create this file with following content


4. restart your XAMPP Server
our server listens now on different ports and uses the respective php version but serves from always the same htdocs folder

maybe run a small phpinfo() on different ports to check if everything is working as intended

localhost => php7
localhost:8474 => php7
localhost:8454 => php5

if you want to add more php versions, add them in the phpvhosts.conf file with an additional port


GGGeek Tutorial

5. Bonus:
If you want to access your different php installations not only via hostname:Port you can also set up some named virtual hosts

5.1 add the host names to your hosts file.

add the following lines for new localhost names

5.2 edit the phpvhosts.conf file to tell apache what to do when the given hostname is called

Coding samples practice. add the Name VirtualHost:

In each Virtualhost tag add the name of the vhost with port 80
inside tag add the ServerName attribute

for php7

for php5

5.3 Restart your xampp.

You can now call the pages in your htdocs folder with php5 or php7

Xampp Php 5.4.31

localhost => php7
localhost:8474 => php7
php7.localhost => php7

Xampp Php 5.4.3

localhost:8454 => php5
php5.localhost => php5