Search code examples
windows-8wampphp

Cannot run PHP CLI on WAMP on Windows 8


I have been trying on this for hours i Get the below error

'php' is not recognized as an internal or external command, operable program or batch file.

Steps i have done 1- I have added to Windows Environement variables C:\wamp\bin\php\php5.3.13; 2-re-installed wamp 2 times 3-Apache and php error log is clean

I have the below configuration

  1. Windows 8 64 bit
  2. Apache 2.2
  3. PHP 5.3.13

Solution

  • seems that php-cli.exe dosent come along with WAMP, I installed XAMPP instead and CLI worked perfectly