更新后 Wamp Server 3.1.4 显示错误

编程入门 行业动态 更新时间:2024-10-28 10:32:36
本文介绍了更新后 Wamp Server 3.1.4 显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我刚刚更新了 Wamp Server 3.1.4.现在 Wamp 在上下文菜单中显示错误,单击时显示此消息:

I just updated Wamp Server 3.1.4. Now Wamp shows error in context menu , that when clicked shows this message:

对不起,

有一个错误.

Wampserver 路径 (F:/wamp64) 进入 Windows PATH 环境变量:(F:\wamp64\bin\php\php7.0.10)

There is Wampserver path (F:/wamp64) into Windows PATH environnement variable: (F:\wamp64\bin\php\php7.0.10)

环境中好像声明了一个PHP安装变量路径 F:\wamp64\bin\php\php7.0.10

It seems that a PHP installation is declared in the environment variable PATH F:\wamp64\bin\php\php7.0.10

Wampserver 不使用、修改或要求 PATH 环境多变的.在 Wampserver 或 PHP 版本上使用 PATH 不利于Wampserver 的正常运行.

Wampserver does not use, modify or require the PATH environment variable. Using a PATH on Wampserver or PHP version is detrimental to the proper functioning of Wampserver.

按 ENTER 继续...

Press ENTER to continue...

推荐答案

在使用 WAMPServer 时,没有理由将 PHP 文件夹添加到 Windows PATH.事实上,你根本不应该这样做,这个错误告诉你.

There is no reason to add the PHP folder to the Windows PATH when using WAMPServer. In fact you should not do that at all, this error is telling you that.

当您使用系统托盘中的 wampmanager 图标更改 PHP 版本时,WAMPServer 将配置正确的 PHP 以在 Apache 中使用.

WAMPServer will configure the correct PHP to use within Apache when you change PHP versions using the wampmanager icon in the system tray.

从 Windows PATH 中删除 F:\wamp64\bin\php\php7.0.10 错误就会消失.

Remove F:\wamp64\bin\php\php7.0.10 from the Windows PATH and the error will go away.

原因当然是因为您可以在 WAMPServer 中安装多个版本的 PHP.

The reason is of course because you could have more than one version of PHP installed within WAMPServer.

如果您想从命令窗口运行 PHP CLI,您应该自己创建一个小批处理文件,如本答案中的建议 https://stackoverflow/a/16289254/2310830

If you want to run the PHP CLI from a command windows you should create yourself a little batch file like suggested in this answer https://stackoverflow/a/16289254/2310830

这篇关于更新后 Wamp Server 3.1.4 显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 22:04:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1142872.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Wamp   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!