php5.x Installation
Download
Window version of PHP official: http://windows.php.net/download#php-5.6
Description
Each PHP version, PHP officially provides two forms, non-thread-safe (Non thread safe), thread safe.
The thread-safe version is used here because the Apache interface is not provided for non-thread safety. Http://write.blog.csdn.net/postedit?ref=toolbar
installation
Download the zip file for php "VC9 x86 Thread Safe (2014-dec-17 23:50:20)" and extract it to the installation directory. ( unzip here to C:\WEB\)
Set PHP config file php.ini (location in Php\php.ini)
1, PHP directory if there is no php.ini file, copy file php.ini-development renamed to PHP.ini
2, set the PHP extension DLL path, search Extension_dir, set the following
<span style= "Font-family:simsun;" >; Directory in which the loadable Extensions (modules) reside.; Http://php.net/extension-dir; Extension_dir = "./"; On windows:extension_dir = "C:/web/php/ext" </span>
3., enable the necessary extension DLLs (just remove the semicolon in front of the DLL)
; Image Processing Module
Extension=php_gd2.dll
; Mail Processing module
Extension=php_imap.dll
Multi-byte character processing module
Extension=php_mbstring.dll
Extension=php_exif.dll
; MySQL interface module
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_pdo_mysql.dll
; OpenSSL interface Module
Extension=php_openssl.dll
4. PHP and PHP Extension DLL paths are added to the environment variable "path". (C:\web\php;c:\web\php\ext)
5. PHP's Time zone settings
<span style= "Font-family:simsun;" >[Date]; Defines the default timezone used by the date functions; Http://php.net/date.timezonedate.timezone = prc</span>
PHP Test
In the Apache web directory, copy the script below into Notepad, save as phpinfo.php, execute localhost/phpinfo.php, and if you can print out PHP information, the PHP has been installed successfully.
<span style= "Font-family:simsun;" ><?phpphpinfo ();? ></span>
Apache 2.4+PHP5.X+MYSQ5.XL Environment Construction (ii)