Install PHP error:'php' is not an internal or external command, nor is it an executable program

1. In the global environment variable: configure php.exe
Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here

2. Configure php.exe in phpStorm
1. Click setting:

Insert picture description here

2. Enter "php" to search; find the relevant directory as shown in the figure:

Insert picture description here

3. Select the current php environment version:

.Insert picture description here

4. Click Interpreter:

Insert picture description here

5. Click PHP executable as shown in the figure to find the path of the php.exe file in the php environment:

Insert picture description here

6. Finally click Apply->ok; exit phpstorm and restart it.

Guess you like

Origin blog.csdn.net/weixin_39854011/article/details/112498609