问题描述
我在 wampserver 上到处都看到降级 php 我只需要左键单击 wamp> php>version> 获取更多>并下载我想要的版本.
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.
但是当我这样做时,我到达了这个页面,但我没有看到任何下载其他 php 版本的链接.我只能在这个页面下载一个文件php5.2.4.isson
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
太好了,我在 php.net 上下载了它,然后将存档解压缩到我的文件夹C:\wamp\bin\php\php5.2.4"
So fine I dowload it on php.net and I unzip the archive in my folder "C:\wamp\bin\php\php5.2.4"
接下来,我将文件 wampserver.conf、php.ini 和 phpForApache.ini 从我的文件夹C:\wamp\bin\php\php5.5.12"复制到文件夹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"
为了完成,我在文件 php.ini 和 phpForApache.ini 中更改了路径:
And to finish I change in the file php.ini and phpForApache.ini the path :
extension_dir = "C:\wamp\bin\php\php5.2.4"
当我重新启动 wamp 时,我有两个版本的 php,一个是我实际使用的(5.5.12),另一个是我想安装的(5.2.4),但是当我选择 5.2.4 时,我的 wamp 图标变成了橙色,并且一直这样我不明白为什么.
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.
推荐答案
要将任何版本的 PHP 手动安装到 WAMP 中,您可以按照以下步骤...
To manually install any version of PHP into WAMP you can follow the following steps...
- 从 php.net 下载二进制文件
- 将所有文件解压到一个新文件夹中:
C:/wamp/php/php5.4.13
(或任何版本号) - 将
wampserver.conf
文件从 wamp 中的另一个 PHP 文件夹复制到新文件夹. - 将
php.ini-development
文件重命名为phpForApache.ini
- 通过退出 Wamp 并重新启动来重新启动 WampServer)
- Download the binaries from php.net
- Extract all files into a new folder:
C:/wamp/php/php5.4.13
(or whatever the version number is) - Copy the
wampserver.conf
file from another PHP folder in wamp to the new folder. - Rename
php.ini-development
file tophpForApache.ini
- Restart WampServer by exiting out of Wamp and restarting it)
注意:如果您添加的是 5.6 版本的 php,您还需要从 wamp 中的另一个 php 文件夹复制 php5apache2_4.dll
否则 wamp 服务器将无法启动.
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.
这篇关于如何降级 Wampserver PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!