Home >Development Tools >phpstorm >Solving the error when writing a command in Terminal in PHPStorm. php is not an internal or external command, nor is it an operable program or batch file.

Solving the error when writing a command in Terminal in PHPStorm. php is not an internal or external command, nor is it an operable program or batch file.

藏色散人
藏色散人forward
2021-01-28 17:55:544616browse

phpstormThe tutorial column below will introduce to you how to solve the error when writing a command in Terminal in PHPStorm. 'php' is not an internal or external command, nor is it an operable program or The method of batch file processing, I hope it will be helpful to friends who need it!

Solving the error when writing a command in Terminal in PHPStorm. php is not an internal or external command, nor is it an operable program or batch file.

The error message is as follows:

Under Windows system, the phpStorm terminal program uses by default It is cmd.exe, so first check whether the php environment variable has been configured. The configuration method is as follows

1.phpinfo(); Check the currently used PHP version

2. Open the php file and find the configuration file location of the currently used version

3. Go to My Computer--> Properties--> Advanced System Settings-- > Environment variables--> Path --> Edit--> Configure environment variables in new process

4. Test

Enter php in terminal think make:controller index/Blog

Created successfully! ! !

The above is the detailed content of Solving the error when writing a command in Terminal in PHPStorm. php is not an internal or external command, nor is it an operable program or batch file.. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete