更新后 Wamp Server 3.1.4 显示错误 [英] After updation Wamp Server 3.1.4 showing error

查看:55
本文介绍了更新后 Wamp Server 3.1.4 显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新了 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.com/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.com/a/16289254/2310830

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆