Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to install PHP 5.3.8 to work with WAMP (Windows).

I downloaded it from the PHP website, copied it in the bin folder, and added this line to wampmanager.ini:

Type: item; Caption: "5.3.8"; Action: multi; Actions:switchPhp5.3.8;


Action: service; Service: wampapache; ServiceAction: stop; Flags: ignoreerrors waituntilterminated
Action: run; FileName: "c:/wamp/bin/php/php5.3.0/php-win.exe";Parameters: "switchPhpVersion.php 5.3.8";WorkingDir: "c:/wamp/scripts"; Flags: waituntilterminated
Action: run; FileName: "c:/wamp/bin/php/php5.3.0/php-win.exe";Parameters: "-c . refresh.php";WorkingDir: "c:/wamp/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices
Action: readconfig;

But it doesn't work...

After I edit it and start WAMP, those changes get removed from the ini file.

share|improve this question
Have you tried downloading it from the WAMP Addon Site? EDIT: Just realised the most recent version on there is 5.3.1, sorry. –  tombull89 Sep 15 '11 at 13:15
This is not the right place for this question. Everyone should down vote this question. I need 4 more reps...then I will do it. :P :P –  Sajeev C Jul 25 '14 at 5:28

3 Answers 3

up vote 0 down vote accepted

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
  • SQLBuddy 1.3.2
share|improve this answer
Alex is trying to get PHP 5.3.8 working. WAMP 2.1a comes with PHP 5.3.3. –  tombull89 Sep 15 '11 at 13:14

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/www/bin/php/php5.4.13/
  3. Copy the wampserver.conf from an other php foler (like php/php5.2.8/) to the new folder
  4. Rename php.ini-development file to phpForApache.ini
  5. Done ! Restart WampServer
share|improve this answer
Great answer. Just to be clear as it tripped me up, by Restart WampServer, it means Right click the tray icon, click exit, then open WAMP again, rather than clicking the Restart All Services button. –  MrLore Jul 20 '14 at 1:19

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!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.