0

I have installed xampp version(7.1.9). when I run php info in browser it is show me correct version of php which is 7.1.x. But when i check in cli the version show 5.5.2 and that's why I can not run command of magneto-2 in cli. How I change php version in cli?

Krunal Pandya
  • 204
  • 1
  • 2
  • 12
  • 3
    Adjust your `PATH` variable to point to the path containing the correct `php.exe`. Also note that you have to re-open the command prompt window for changes to take effect. – ccKep Apr 19 '18 at 10:43
  • how i change my PATH variable?.And i have already one old xampp in it – Krunal Pandya Apr 19 '18 at 10:53
  • Literally enter that exact question in google and there's dozens of results. Example: [Link](https://stackoverflow.com/questions/24219627/how-to-update-system-path-variable-permanently-from-cmd) – ccKep Apr 19 '18 at 10:55

0 Answers0