Categories: Development

Updating PHP version with XAMPP

Here is how to easily and successfully upgrade PHP version in XAMPP for windows. It can be done with any XAMPP PHP version of your choice. I upgraded to PHP 7.3.1 from the old 5.6 successuly this way.

Backup current XAMPP

Make sure XAMPP is turned off.

First you need to make spare copies and backups of a few folders and files. If you have enough space just do a whole copy of the XAMPP directory (C:\xampp) this is recommended otherwise copy these to a safe place:

  1. C:\xampp\htdocs
  2. C:\xampp\mysql\data
  3. C:\xampp\php\php.ini

And any other configuration files you have altered, if you havent changed the php.ini there is no need to copy. Also this is assuming you’re using htdocs folder as the document root for the web server.

Download the PHP version

Download the version of PHP packed in XAMPP from here for Windows PHP 7.3.1 go here and download the portable zip file.

Apply the new PHP version

Open the downloaded portable XAMPP and drag the contents into C:\xampp overwriting the original files. Once that’s finished drag back in and overwrite:

  1. C:\xampp\htdocs
  2. C:\xampp\mysql\data
  3. C:\xampp\php\php.ini

Or any other files you need from your previous installation.

Start up XAMPP and you will now have a fresh PHP version.

Share

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago