How to downgrade Wampserver PHP?

放肆的年华 提交于 2019-12-10 10:17:39

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/29939555/how-to-downgrade-wampserver-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!