简体   繁体   English

WampServer 不更新 PHP 版本列表

[英]WampServer doesn't update the PHP version list

as the title above, WampServer seems like doesn't update the PHP version list....正如上面的标题,WampServer 似乎没有更新 PHP 版本列表....

I already download and include php7.4.10 folder, but the list doesn't seems to be updated....我已经下载并包含php7.4.10文件夹,但列表似乎没有更新....

I also even restart my computer, and the list didn't updated..我什至还重新启动了我的电脑,但列表没有更新..

在此处输入图片说明 在此处输入图片说明

For your info, this is on production server...供您参考,这是在生产服务器上...

While in test server and my localhost, there's nothing problem at all to upgrade the php version...在测试服务器和我的本地主机中,升级 php 版本完全没有问题......

This problem occurred only to my production server..这个问题只发生在我的生产服务器上..

Is there any alternative way to update the php version?有没有其他方法来更新 php 版本?

I had this issue today when updating to PHP 8.0.3, where after installing the add-on for the new version from https://wampserver.aviatechno.ne , the new 8.0.3 version wasn't added to the list at WAMP>PHP>Versions.我今天更新到 PHP 8.0.3 时遇到了这个问题,在从https://wampserver.aviatechno.ne安装新版本的附加组件后,新的 8.0.3 版本没有添加到 WAMP 的列表中>PHP>版本。

The solution that worked for me:对我有用的解决方案:

  1. Check if there is a PHP error (that happens when you Refresh WAMP) by going to WAMP>PHP>PHP Error Log.转到 WAMP>PHP>PHP 错误日志,检查是否存在 PHP 错误(刷新 WAMP 时发生)。
  2. I found an error where PHP didn't have enough memory to Refresh WAMP.我发现了一个错误,其中 PHP 没有足够的内存来刷新 WAMP。
  3. I increased the memory_limit in C:\\wamp64\\bin\\php\\php5.6.40\\php.ini to 2000M from 128M (Note: if WAMP uses a different PHP version for CLI, update their respective php.ini)我将 C:\\wamp64\\bin\\php\\php5.6.40\\php.ini 中的 memory_limit 从 128M 增加到 2000M(注意:如果 WAMP 使用不同的 PHP 版本进行 CLI,请更新各自的 php.ini)
  4. Right-click WAMP > Refresh右键单击 WAMP > 刷新

Hopefully this helps希望这会有所帮助

If you want to manually install PHP 7.4.10 ,into your WampServer version.如果您想将PHP 7.4.10手动安装到您的 WampServer 版本中。

  1. Download binaries on php.net在 php.net 上下载二进制文件

  2. Extract all files in a new folder :C:/wamp/bin/php/php7.4.10/提取新文件夹中的所有文件:C:/wamp/bin/php/php7.4.10/

  3. Copy the wampserver.conf from another php folder (like php/php7.2.14/) to the new folder将 wampserver.conf 从另一个 php 文件夹(如 php/php7.2.14/)复制到新文件夹

  4. Rename php.ini-development file to phpForApache.ini将 php.ini-development 文件重命名为 phpForApache.ini

  5. Done !完毕 ! Restart WampServer.重新启动 WampServer。

This will help you.这会帮助你。

Ok... now I know why... it is because there's something wrong in php.ini configuration.. need to check again the configuration..... for my case, I need to remove the code as image below:好的...现在我知道为什么...这是因为php.ini配置有问题...需要再次检查配置.....对于我的情况,我需要删除如下图所示的代码:

在此处输入图片说明

Actually fresh php version 7.4.10 doesn't have this interbase configuration.... i copy this [interbase] code from previous php version which is version 7.2.14 ..实际上,新的php version 7.4.10没有这种interbase配置……我从以前的 php version 7.2.14复制了这个[interbase]代码。

But after remove back this interbase configuration, my problem solved..但是在删除这个 interbase 配置后,我的问题解决了..

Conclusion is: If you face same problem like me (or if apache service cannot started), it means there's something wrong with your php.ini configuration... trust me...结论是:如果你和我一样遇到同样的问题(或者apache服务无法启动),那就意味着你的php.ini配置有问题......相信我......

I had the same issue when updating WAMP Manager Update 3.2.5 and Upgrading to PHP 7.4 via the Addons Package both found here .通过附加组件包更新WAMP经理更新3.2.5,并升级到PHP 7.4的时候我有同样的问题都在这里找到 When I updated WAMP Manager it showed an even older version than I already had (on the GUI) and when I ran the PHP 7.4 package addon it did not show up in my PHP list.当我更新 WAMP 管理器时,它显示的版本比我已有的版本(在 GUI 上)还要旧,当我运行 PHP 7.4 软件包插件时,它没有出现在我的 PHP 列表中。

My solution was to choose an even older version of PHP from the list and then after WAMP restarted my new PHP 7.4 was showing and the WAMP Manager was showing the newest version.我的解决方案是从列表中选择一个更旧版本的 PHP,然后在 WAMP 重新启动后,我的新 PHP 7.4 显示出来,WAMP 管理器显示最新版本。 So it clearly had to do with WAMP restarting which makes me wonder if restarting all services or a full PC reboot would have helped as well.所以它显然与 WAMP 重新启动有关,这让我想知道重新启动所有服务或完整的 PC 重新启动是否也会有所帮助。

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

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