This article describes how to configure the php environment in Windows 7. This article describes how to configure the PHP environment in Windows 7, the steps include downloading the installation file, configuring PHP, adding it to system variables, and checking whether the installation is successful,
This article describes how to configure the php environment in Windows 7. This article describes how to configure the PHP environment in Windows 7, the steps include downloading the installation file, configuring PHP, adding it to system variables, and checking whether the installation is successful,
1. Download the package
First download the package from the php official website. Official website address:
Ii. Decompression
Decompress your package and place it in the directory except drive C (the folder is not named in Chinese)
3. Modify the php installation package file
Find "php. ini-development" in the php root directory and change it to "php. ini"
Found in php. ini (The following is not set)
Find the following statements and remove the ";" before these statements:
The Code is as follows:
; Extension = php_gd2.dll
; Extension = php_mysql.dll
; Extension = php_sockets.dll
Find the following two sentences:
The Code is as follows:
; On windows:
; Extension_dir = "ext"
Change the last sentence to (remove the semicolon ):
The Code is as follows:
Extension_dir = "D: \ php-5.5.7 \ ext" // your php Directory
4. Add the environment variable
The environment variable settings for win7 are similar to those for xp. Right-click computer> Properties> advanced system settings and choose advanced> environment variable from system properties]
V. php version check
,