Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 0x2 starting php.exe --version

Tags:

php

i am getting this strange error while i check my php version

Error 0x2 starting php.exe --version

can anyone tell me how to solve it ?

like image 333
Cyed Safir Avatar asked Sep 27 '22 07:09

Cyed Safir


1 Answers

Make sure your php.exe is in your PATH.

Here is a good resource for setting PATH variables : http://www.computerhope.com/issues/ch000549.htm

After that restart your console and try again.

like image 138
emilchristensen Avatar answered Oct 04 '22 08:10

emilchristensen