After updation Wamp Server 3.1.4 showing error

浪子不回头ぞ 提交于 2019-12-02 12:42:06

问题


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

Sorry,

There is an error.

There is Wampserver path (F:/wamp64) into Windows PATH environnement variable: (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 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.

Press ENTER to continue...


回答1:


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.

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

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

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

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



来源:https://stackoverflow.com/questions/52749706/after-updation-wamp-server-3-1-4-showing-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!