Php.Exe' Is Not Recognized as an Internal or External Command, Operable Program or Batch File

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

I think you need to change it to A:\xampp\php\ and just leave it there, then it will search the directory for the file, also: have you tried calling just php instead of php.exe and check that the directory is correct.

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

Add C:\xampp\php to your PATH environment variable.(My Computer->properties -> Advanced system setting-> Environment Variables->path (click on edit))

Then close your command prompt and restart again.

Note: It's very important to close your command prompt and restart again otherwise changes will not be reflected.

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

set environment variable path like follow....

path :=>...;D:\STUDIES\xampp\php;D:\STUDIES\xampp\yii\yiiframework;

or set proper path (based on your dir structure) like above....

php is not recognized as an internal or external command' even though path is set

Try the following :

  1. Before setting the path in your environment variables, test the command directly by navigating to the folder from your command prompt then execute the command .

  2. If the command is working, add the path to your environment variables and restart your computer. Open the command prompt as an administrator by right clicking the command prompt.

  3. Ensure you open the command prompt as an administrator.

Hope this help

Changed Windows PATH but still getting 'php.exe is not recognized ' errormessage

PATH should be a directory, not a file, so you should set it to "c:\xampp\php\", not "c:\xampp\php\php.exe"

php is not recognized as an internal or external command using xampp

When adding an entry to environment variables make sure you leave no spaces between the semicolon and the new path.

I spent a couple of hours going over my steps until I realized that the only difference between other path entries and mine was a single empty space. So i changed it and tried again at the command window (no need to log off and back on) and it worked!

I realize this was asked a while ago but since I found myself looking for a solution i figured this might be helpful to other people too.



Related Topics



Leave a reply



Submit