How to add new PHP version to WAMP

why don't you install last version of WAMP

WampServer 2.1a [24/12/10] Includes :

  • Apache 2.2.17
  • Php 5.3.3
  • Mysql 5.1.53 (version 64 bits)
  • Mysql 5.5.8 (version 32 bits)
  • PhpMyadmin 3.2.0.1
  • SQLBuddy 1.3.2

I needed a way to manually install PHP 5.4, because there's no PHP 5.4 addon for my WampServer version.

This thread is a bit old but I'll give the procedure here, as it match to the original question.

I'll take PHP 5.4.13 for my example (currently the most recent 5.4 version)

  1. Download binaries on php.net
  2. Extract all files in a new folder : C:/wamp/bin/php/php5.4.13/
  3. Copy the wampserver.conf from another php folder (like php/php5.2.8/) to the new folder
  4. Rename php.ini-development file to phpForApache.ini
  5. Done ! Restart WampServer (>Right Mouseclick on trayicon >Exit)

note: if you are adding php version 5.6, you need to copy php5apache2_4.dll from other php folder, too, otherwise the wamp server won't start.


I too needed to upgrade PHP in WAMP recently. There are a handful of steps to properly do so. I covered them all and provided screenshots in the post linked to above.

Hope it helps!


This is another helpful article about changing the php version in wamp.

A useful detail that is mentioned in the article is to update the environment variable to point to the new php, so you can get access to the right php cli.