Press "Enter" to skip to content

Solved: PHP is not recognized as an internal or external command in CMD

If you have already installed Wampserver or Xamp, but you still get this error “PHP is not recognized as an internal or external command” in Command prompt or windows power shell, composer, etc.

Try below method to solve this error.

Just copy your php location on your Wamp or Xamp.

That may be:

On Xamp: C:\xampp\php

On Wamp: C:\wamp\bin\php\php5.5.12 (version may change)

PHP is not recognized as an internal or external command in CMD

On your Windows Start Menu, ‘search for Enviorment variables’

PHP is not recognized as an internal or external command in CMD
  • On Environment Variables, Select Path
  • Edit Path
PHP is not recognized as an internal or external command in CMD

On New button, add your path to php.

PHP is not recognized as an internal or external command in CMD

OK.

One Comment

  1. zortilo nrel zortilo nrel 18th April 2021

    I have been surfing on-line greater than 3 hours as of late, yet I by no means discovered any interesting article like yours. It is lovely value sufficient for me. Personally, if all site owners and bloggers made excellent content as you did, the net will likely be a lot more helpful than ever before.

Leave a Reply