Home  >  Article  >  Backend Development  >  How to set up php environment variables in win7

How to set up php environment variables in win7

藏色散人
藏色散人Original
2021-07-27 09:12:112642browse

How to build php environment variables in win7: 1. Find the installation path of the php.exe file and copy the path; 2. Enter "System Properties"; 3. Click "Environment Variables"; 4. In "System Variables" Find "Path"; 5. Paste the copied path; 6. Check the PHP version number.

How to set up php environment variables in win7

## The operating environment of this article: Windows 7 system, PHP version 7.1 , DELL G3 computer

win7 How to set up php environment variables?

Set PHP environment variables in Windows 7

    Required preparation
  • Start setting PHP environment variables
Required preparation

必须先安装好 PHP

Start setting PHP environment variables

    Find the php.exe file installation path and copy the path
  1. Desktop-> My Computer-> Right Click-> Properties-> Select advanced system settings, enter "System Properties"
  2. Select the "Advanced" tab-> Click "Environment Variables"
  3. In "System Variables" )" find "Path"
  4. Paste the path copied in the first step (note: each path is separated by English semicolons)
  5. Win R Enter cmd or use Git Bash, enter php -v to display the php version number and the setting is complete
Recommended learning: "

PHP Video Tutorial"

The above is the detailed content of How to set up php environment variables in win7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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