Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade Wampserver PHP?

I see everywhere for downgrade php on wampserver I just have to do left click wamp> php>version> get more> And dowload the version I want.

But when I do it I arrive on this page and I don't see any link for download an other php version. I only can download a file php5.2.4.isson this page

So fine I dowload it on php.net and I unzip the archive in my folder "C:\wamp\bin\php\php5.2.4"

Next I copy the files wampserver.conf, php.ini and phpForApache.ini from my folder "C:\wamp\bin\php\php5.5.12" to the folder "C:\wamp\bin\php\php5.2.4"

And to finish I change in the file php.ini and phpForApache.ini the path :

extension_dir = "C:\wamp\bin\php\php5.2.4"

When I restart wamp I have the 2 versions of php the one I use actualy (5.5.12) and the one I want to instal (5.2.4) but when I choose the 5.2.4 my wamp icon became orange and stay like this I don't understand why.

like image 466
Kvasir Avatar asked Dec 19 '22 04:12

Kvasir


1 Answers

To manually install any version of PHP into WAMP you can follow the following steps...

  1. Download the binaries from php.net
  2. Extract all files into a new folder: C:/wamp/php/php5.4.13 (or whatever the version number is)
  3. Copy the wampserver.conf file from another PHP folder in wamp to the new folder.
  4. Rename php.ini-development file to phpForApache.ini
  5. Restart WampServer by exiting out of Wamp and restarting it)

Note: If you are adding php version 5.6, you need to copy php5apache2_4.dll from another php folder in wamp as well otherwise the wamp server wont start.

like image 154
Chris Rutherfurd Avatar answered Jan 05 '23 09:01

Chris Rutherfurd