如何降级 Wampserver PHP 和 Apache?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22237695/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 04:45:06  来源:igfitidea点击:

How to downgrade Wampserver PHP and Apache?

phpapachewampwampserver

提问by Jerielle

I have a project that runs on Apache 2.2.21 and PHP 5.3.10. I installed the latest wampserver which have Apache 2.4.4 and PHP 5.4.16. How can I downgrade the version?

我有一个在 Apache 2.2.21 和 PHP 5.3.10 上运行的项目。我安装了最新的 wampserver,其中包含 Apache 2.4.4 和 PHP 5.4.16。如何降级版本?

I also have a project that runs in the latest and not in the old version that's why I can't install the old version of wampserver. In my wampserver I installed the Apache and PHP which is old version. But after installing it and restarting my server. I can't run the Apache and PHP. If I start the version of Apache it says the PHP version is not compatible. And if I enable the PHP it says the Apache is not compatible with the version of Apache.

我还有一个在最新版本而不是旧版本中运行的项目,这就是为什么我无法安装旧版本的 wampserver。在我的 wampserver 中,我安装了旧版本的 Apache 和 PHP。但是在安装它并重新启动我的服务器之后。我无法运行 Apache 和 PHP。如果我启动 Apache 版本,它会说 PHP 版本不兼容。如果我启用 PHP,它会说 Apache 与 Apache 的版本不兼容。

Can you give me an idea how to do it?

你能告诉我怎么做吗?

回答by Yichaoz

left click wamp> php>version> get more>

左键单击 wamp> php> 版本> 获取更多>

select the version ytou want and download it.

选择你想要的版本并下载它。

install the exe.

安装exe。

left click wamp> php> version> php xxx.x

左键单击 wamp> php> 版本> php xxx.x

UPDATE: I have further investigated: to switch between that 2 version seems not that simple... please check this guide, it has very detailed information

更新:我进一步调查:在这 2 个版本之间切换似乎并不那么简单......请查看本指南,它有非常详细的信息

and thismaybe also help

也许也有帮助

enter image description here

在此处输入图片说明

回答by Pascal Le Merrer

Just go to wamp home page. At the bottom of the page you'll find links (big yellow buttons, you can't miss them) towards apache and PHP addons. Install some of them and you'll be able to be between several versions of apache and PHP from wamp's menu.

只需转到wamp 主页。在页面底部,您会找到指向 apache 和 PHP 插件的链接(黄色大按钮,您不能错过它们)。安装其中一些,您将能够从 wamp 的菜单中在多个版本的 apache 和 PHP 之间切换。