16

My wamp server icon is currently orange, which means only 2 out of 3 servers are running. I can not open my phpmyadmin page because it gives 404 not found error. if I right click on my wamp icon at the bottom I get an error saying Error: C:/wamp64 or PHP in PATH. If I click on this error then a command prompt window appear saying this:-

Sorry,

There is an error.

There is Wampserver path (c:/wamp64)
into Windows PATH environnement variable: (C:\wamp64\bin\php\php7.2.4)

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

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...
Epic
  • 161
  • 1
  • 1
  • 3

4 Answers4

28

To repress this error notification: right-click on System Tray wampserver icon and hover on "Wamp Settings" >> select "Do not verify PATH"

Cody Gray
  • 230,875
  • 49
  • 477
  • 553
Milson
  • 1,357
  • 3
  • 13
  • 29
10

As indicated, you do not need a path on a PHP version in the Windows PATH environment variable.

  • Control Panel
  • System
  • Advanced system settings
  • Environment Variables button
  • System variables
  • Select PATH
  • Modify Select C:\wamp64\bin\php\php7.2.4
  • Press OK
lomelisan
  • 748
  • 8
  • 15
Saeed.Gh
  • 1,257
  • 10
  • 22
  • 1
    What if I don't see C:\wamp64\bin\php\php7.2.4 in my PATH? – Spencer Shattuck Mar 02 '20 at 21:55
  • 2
    wamp itself does not add php to path variable and does not need it, some times installing other applications like composer adds php to path variable, you can find and remove it. it is a path pointing to a php version in your wamp folder. But if you need it in path variable follow @Milson solution – Saeed.Gh Mar 03 '20 at 02:36
  • @Saeed.Gh, yes composer added the path, but if I remove it would composer work properly?? And Laravel too?? – Mikaware Jan 19 '22 at 12:36
2

I meet the same issue. Maybe it's because your port 80 is used by other programs you don't need to add path just change your port 80 -> 8080

miken32
  • 39,644
  • 15
  • 91
  • 133
Duch Noun
  • 21
  • 1
  • 1
    Yes! Rightclick -> tools -> use port other then 80 -> 8080 made my wampserver icon green from orange, and http://localhost:8080/ work, though the error is showing still in the menu – Fanky Mar 01 '22 at 10:07
1

If you use Composer commands, you need to add PHP path in the Windows PATH Environment Variable. Otherwise, you don't.

I am using Laravel framework and usually install packages by command lines. I have to keep PHP path in WEV although WampManager told me that error.

You should be careful on checking PHP version. The http://localhost/ will give you the PHP version selected by WampManager. If you use command line "php -v", it will give you the version added in Windows PATH.

Tommy Hoang
  • 133
  • 7