简体   繁体   English

无法将WampServer PHP 5.3.13更新为PHP 5.4.45

[英]Update WampServer PHP 5.3.13 To PHP 5.4.45 Doesn't Work

I'm trying to upgrade the PHP on my WampServer installation (Apache 2.2.22, PHP 5.3.13, MySQL 5.5.24) from PHP v5.3.13 to v5.4.45. 我正在尝试将WampServer安装上的PHP(Apache 2.2.22,PHP 5.3.13,MySQL 5.5.24)从PHP v5.3.13升级到v5.4.45。 I only want to update PHP, not any of the other WampServer components. 我只想更新PHP,而不要更新其他任何WampServer组件。 I've confirmed that my installed WampServer was compiled with the Microsoft VC9 compiler and that PHP 5.4.45 is also compiled with the same Microsoft VC9 compiler. 我已经确认安装的WampServer是使用Microsoft VC9编译器编译的,并且PHP 5.4.45也使用相同的Microsoft VC9编译器编译。 I've used the instructions given at this link in the HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMP ENVIRONMENT section (a little more than halfway down in the article) to install PHP 5.4.45: 我已经使用了如何将新版本的PHP手动安装到WAMP ENVIRONMENT中的链接中给出的说明(本文的一半多一点)来安装PHP 5.4.45:

http://forum.wampserver.com/read.php?2,60567,page=2 http://forum.wampserver.com/read.php?2,60567,page=2

When I change my PHP version from 5.3.13 to 5.4.45 (using the WampServer menu that's displayed when I click on the WampServer Task Bar icon) the color of the WampServer icon changes from green (when PHP 5.3.13 is selected) to orange (when PHP 5.4.45 is selected). 当我将PHP版本从5.3.13更改为5.4.45(使用单击WampServer任务栏图标时显示的WampServer菜单)时,WampServer图标的颜色从绿色(选择PHP 5.3.13时)变为绿色。橙色(选择PHP 5.4.45时)。 Does anyone have an easy-to-understand set of instructions for upgrading just the PHP component of WampServer? 是否有人有一套简单易懂的说明来仅升级WampServer的PHP组件? I'm really sketchy in my knowledge about how to upgrade individual WampServer components, so I am looking for something basic that covers every step in 'beginner detail.' 我对如何升级单个WampServer组件的知识非常粗略,因此我正在寻找一些涵盖“初学者细节”每一步的基本知识。 I don't want to upgrade the entire WampServer environment because I'm using the current WampServer installation as my Website development platform and that would affect my already-developed Websites. 我不想升级整个WampServer环境,因为我正在使用当前的WampServer安装作为我的网站开发平台,这会影响我已经开发的网站。

Thanks In Advance For Your Help - 在此先感谢您的帮助 -

I figured out that my installed WampServer is 64-bit and that the only available PHP 5.4.x download available from PHP.net is 32-bit. 我发现我安装的WampServer是64位的,而从PHP.net只能下载的PHP 5.4.x是32位的。 Both the compiler versions and the bit count must match in order to upgrade PHP successfully in a WampServer environment. 为了在WampServer环境中成功升级PHP,编译器版本和位数必须匹配。 This is because WampServer runs PHP as a "subroutine" of Apache. 这是因为WampServer将PHP作为Apache的“子例程”运行。 The compiler versions used to create my 64-bit Apache 2.2.22 and the 32-bit PHP 5.4.45 both match (VC9). 用于创建我的64位Apache 2.2.22和32位PHP 5.4.45的编译器版本都匹配(VC9)。 However, the PHP 5.4.45 download available on PHP.net is 32-bit (there is no 64-bit option). 但是,PHP.net上的PHP 5.4.45下载是32位的(没有64位的选项)。 The 32-bit version won't work with my 64-bit Wampserver (specifically the 64-bit Apache 2.2.22) and that's why my upgrade PHP failed. 32位版本不适用于我的64位Wampserver(尤其是64位Apache 2.2.22),这就是为什么我的升级PHP失败的原因。

download PHP 5.4.45 下载PHP 5.4.45

download other version http://windows.php.net/download#php-5.5 下载其他版本http://windows.php.net/download#php-5.5

copy to: 复制到:

c:\\wamp\\php\\ c:\\ wamp \\ php \\

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

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