I'm installing php, so I added C:\PHP7 to my env variable %path%. I run the cmd with administrator access, and when

echo %path%

The result is:

C:\PHP7\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\hendr\AppData\Local\Microsoft\WindowsApps

Here is screenshot from cmd:

enter image description here

But I still can't execute php.exe (which is located in C:\PHP7) in any folder. What' I've missed here ?

  • Can you execute PHP in any folder by writing C:\PHP7\php.exe ? Feb 16 '17 at 15:05
  • @duDE Yes I can.
    – Hendry H.
    Feb 16 '17 at 15:24
  • Please edit and include the full output from running the PATH command in a cmd shell.
    – DavidPostill
    Feb 16 '17 at 15:28
  • @DavidPostill Done. Please check.
    – Hendry H.
    Feb 17 '17 at 2:15
  • @HendryH., we are always glad to help but rather than replying with a different account than the one that authored the question, please ask the moderators to have your two accounts merged.
    – Run5k
    Feb 17 '17 at 3:30

Try with php.exe in bin folder. Add bin folder to PATH env. variable.

  • My folder installation doesn't have bin folder. And yes I tried to create bin folder myself, and copy php.exe to bin folder, add bin folder to env. And still I can't just type php.exe directly.
    – Hendry H.
    Feb 17 '17 at 9:12
  • 1
    Speculative suggestions are better as a comment. from review.
    – fixer1234
    Feb 17 '17 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.