How to change php version in wamp server

PHP
Ashiq
Updated 16 Jun 2021
HIGHLIGHTS
  • Upgrade wamp server
  • Update version of php without uninstalling wamp server
  • Upgrade without interuption

Many times we need come across situation where we are required to use specific version of php of higher version of the existing php we have installed in our system. Mostly for development environment we prefer using wamp or xamp. And through this post I will be guiding you to upgrade your php version in your existing wamp server also I will guide you to update existing wamp server wihtout uninstalling or lossing backup

Head over to Repository of Wampserver files, which host bunch of versions of wamp server executables, PHP, MySQL, MariaDB versions. https://wampserver.aviatechno.net/

The best thing of this site is, each module/part can be updated independently without affecting the other module

Wamp server executables

  1. Combo fo all major versions

Phpmyadmin vesions available

  1. Phpmyadmin 4.9.7
  2. Phpmyadmin 5.1.1

PHP vesions available (bith 32 and 64 bit)

  1. PHP 5.6.40
  2. PHP 7.0.33
  3. PHP 7.1.33
  4. PHP 7.2.34
  5. PHP 7.3.28
  6. PHP 7.4.20
  7. PHP 8.0.7 etc

MySQL vesions available (bith 32 and 64 bit)

  1. MySQL 5.1.72
  2. MySQL 5.5.62
  3. MySQL 5.6.51
  4. MySQL 5.7.34

MariaDB vesions available (bith 32 and 64 bit)

  1. MariaDB 5.5.62
  2. MariaDB 10.1.48
  3. MariaDB 10.2.38
  4. MariaDB 10.3.29
  5. MariaDB 10.4.19
  6. MariaDB 10.5.10


So, to update the versions?

  • First take backup of all your databases
  • Backup all your projects from C:/wamp/www (C:/wamp64/www)
  • Back your virtual hosts if any

Although there is very low chances of lossing data, still no one knows. Make sure to backup everything before proceding.

To update you php version from any older version to new version, simply go to this site https://wampserver.aviatechno.net/ find the php version you want and download the executables that you want. Afer downloading the executables, simply run as usual.

There might be message that this php version is not supported in this version of wamp. In that case simply download the wampserver updated and install that. Now you should be able to install the desired php version you want.