Home >Backend Development >PHP Tutorial >PHP environment configuration tutorial under Windows7, windows7php_PHP tutorial
1: Download the package
First go to the php official website to download the program package, the official website address: http://www.php.net/downloads.php
Two: Decompression
Unzip your program package and place it in a directory other than the c drive (the folder is not named in Chinese)
3: Modify the php installation package file
Find "php.ini-development" in the php root directory and modify it to: "php.ini"
Found in php.ini (the following is not set by myself)
Find the following statements and remove the ";" in front of these statements:
Copy code The code is as follows:
;extension=php_gd2.dll
;extension=php_mysql.dll
;extension=php_sockets.dll
Find the following two sentences:
Copy code The code is as follows:
;On windows:
;extension_dir = "ext"
Change the last sentence above to (note removing the preceding semicolon):
Copy code The code is as follows:
extension_dir = "D:php-5.5.7ext" //The directory where you store php
Four: Add environment variables
The environment variable settings of win7 management are similar to those of xp. Right-click [Computer]--[Properties]--[Advanced System Settings] and then select [Advanced]--[Environment Variables] in the system properties
Five: Detect php version number