在 Wamp 中安装 php5.5

Installing php5.5 in Wamp

我很不幸需要在我的 wamp 3.1.3 安装上安装 php 5.5 以支持一些旧代码,希望 很快就会死掉。

我把文件安装到这里:

但是当我进入 wamp 菜单更改版本时,它没有出现。我是不是漏掉了什么设置?

我已经退出并重新打开 wamp,但这没有帮助。

随着您在 wamp 文件夹中创建的 PHP5.5.9 安装,您可能忘记做的是在 wamp64\bin\php\php5.5.9\ 文件夹中创建一个 wampserver.conf 文件。

应该是这样的

<?php

$phpConf['phpIniDir'] = '.';
$phpConf['phpExeDir'] = '.';
$phpConf['phpConfFile'] = 'php.ini';

$phpConf['apache']['2.2']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.2']['LoadModuleFile'] = 'php5apache2_2.dll';
$phpConf['apache']['2.2']['AddModule'] =  '';

$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] =  '';

?>

I think this version of PHP will run with Apache 2.4, but that just might be your next issue. In which case you may have to download an Apache 2.2 from the http://wampserver.aviatechno.net/?lang=en&allversions=afficher site

Also I hope you downloaded the 64bit version of that PHP as you appear to be using the 64bit WAMPServer and therefore 64bit Apache, so they have to match

您似乎还下载了 PHP5.5.9 的源代码而不是可执行文件。从 The PHP Archive

下载可执行代码

这是我的旧 HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMPSERVER ENVIRONMENT Tutorial 看看是否能帮助您实现这一目标。

Ping me if you have any questions on that.