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.

藏色散人
Release: 2021-02-03 18:49:26
forward
4547 people have browsed it

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!