简体   繁体   English

在Wamp中安装php5.5

[英]Installing php5.5 in Wamp

I am in the unfortunate position of needing to install php 5.5 on my wamp 3.1.3 installation to support some old code that will hopefully soon die. 我处于不幸的境地,需要在我的wamp 3.1.3安装中安装php 5.5,以支持一些旧代码, 希望这些代码很快就会死掉。

I installed the files to here: 我将文件安装到这里:

在此处输入图片说明

But when I go into the wamp menu to change the version, it's not showing up. 但是当我进入wamp菜单更改版本时,它没有显示出来。 Am I missing a setting somewhere? 我在某处缺少设置吗?

I've exited and re-opened wamp, but that didn't help. 我已经退出并重新打开了沼泽,但这并没有帮助。

在此处输入图片说明

With the install of PHP5.5.9 that you have created in the wamp folder, what you probably forgot to do was create a wampserver.conf file in wamp64\\bin\\php\\php5.5.9\\ folder. 在wamp文件夹中创建的PHP5.5.9安装完成后,您可能忘记做的是在wamp64\\bin\\php\\php5.5.9\\文件夹中创建了wampserver.conf文件。

It should look like this 它应该看起来像这样

<?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. 我认为此版本的PHP将与Apache 2.4一起运行,但这可能是您的下一个问题。 In which case you may have to download an Apache 2.2 from the http://wampserver.aviatechno.net/?lang=en&allversions=afficher site 在这种情况下,您可能必须从http://wampserver.aviatechno.net/?lang=en&allversions=afficher网站下载Apache 2.2

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 另外,我希望您下载的是该PHP的64位版本,因为您似乎正在使用64位WAMPServer,因此也正在使用64位Apache,因此它们必须匹配

You also seem to have downloaded the Source code and not the executables for PHP5.5.9. 您似乎还下载了源代码,而不是PHP5.5.9的可执行文件。 Download the executables code from The PHP Archive The PHP Archive下载可执行代码

Here is my old HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMPSERVER ENVIRONMENT Tutorial see if that helps you get this going. 这是我以前的如何将新版本的PHP手动安装到WAMPSERVER环境中的教程,看看是否有帮助。

Ping me if you have any questions on that. 如果您有任何疑问,请联系我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM