manually set up the Wamp environment is a phper necessary skills, with the replacement of PHP version, the corresponding and the system and server collocation are changing, the following is the latest version of the year to do a presentation.
One, PHP version selection
currently the latest PHP version is php5.6.3, if it is liunx system, please select the php-5.6.3.tar.gz,windows user under the Nor The thread safe and thread safe, as well as X86 and X64, have a total of 4 versions, with thread safety X86 is Win32 bit,X64 is win64 bit.
according to their own system, I choose VC11 x64 Non Thread Safe version
which VC11 need to make an additional explanation, originally PHP is divided into VC6 and VC9, where VC6 is supported Apache server,VC9 is supported by IIS server, but after php5.5 , unified becomes VC11, so for the user to install Apache Server, need to download a module on the official website, namely: mod_fcgid.so, but the installation of PHP is a lot simpler.
Second, PHP installation
PHP installation is very simple, first need to extract the downloaded zip file to the corresponding directory, and modify the folder name php56
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/52/76/wKioL1RkeKixei7pAAP49q2q3Rc687.jpg "title=" 1.jpg " alt= "Wkiol1rkekixei7paap49q2q3rc687.jpg"/>
Modifying System Variables Path, Increase D:\winrar\php56;d:\winrar\php56\ext
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/52/78/wKiom1RkeGDQtCqSAAF6-A8PGj0791.jpg "title=" 2.jpg " alt= "Wkiom1rkegdqtcqsaaf6-a8pgj0791.jpg"/>
copy the php.ini-development file and modify the file name to php.ini
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/52/76/wKioL1RkeOLiCfPFAAQoHYVamZY485.jpg "title=" 3.jpg " alt= "Wkiol1rkeolicfpfaaqohyvamzy485.jpg"/>
Three, php.ini configuration
Open The php.ini configuration file
Found it:
; Onwindows:
Extension_dir = "ext"
Modified to:
; Onwindows:
Extension_dir = "D:/winrar/php56/ext"
PHP By default does not support the automatic connection of Mysql, you need to open the php.ini file in the corresponding extension library functions, such as Php_mysql.dll , put them in front of ; number removed
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_pdo_mysql.dll
Extension=php_pdo_odbc.dll
Extension=php_xmlrpc.dll
Extension=php_xsl.dll
Found it:
;d Ate.timezone =
Modified to:
Date.timezone =asia/shanghai
Open Session path and upload path are:
Session.save_path= "d:/code/session"
Upload_tmp_dir = "d:/code/upload"
Of course, you need to create a corresponding folder
Iv. Testing
Double-click php.exe, if it appears, the PHP configuration is not a problem, if pop-up information, according to the content please Baidu to solve.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/52/78/wKiom1RkeLOSu_6aAACWNVKr96M790.jpg "title=" 4.jpg " alt= "Wkiom1rkelosu_6aaacwnvkr96m790.jpg"/>
PHP installation under Windows