Home > Article > Backend Development > Enter 'php -v' Can't find the command?
Enter “php -v” Can’t find the command?
The command cannot be found when entering "php -v". The reason is that the PHP environment variable is not set. Solution:
First right-click "Computer" and select "Properties";
Then open "Environment Variables" under "Advanced System Settings";
Finally add PHP to PATH Just program path.
Recommended tutorial: "PHP"
The above is the detailed content of Enter 'php -v' Can't find the command?. For more information, please follow other related articles on the PHP Chinese website!