Apache 2.4 + php5.x + mysq5.xl Environment (2), php5.xmysq5. xl
PHP5.X Installation
Download
Php windows official: http://windows.php.net/download#php-5.6
Description
For each php version, php provides two official forms: Non-Thread Safe and Thread Safe ).
The thread-safe version is used here, because the apache interface is not provided for non-thread-safe. Http://write.blog.csdn.net/postedit? Ref = toolbar
Install
Download the php [VC9 x86 Thread Safe (23:50:20)] zip file and decompress it to the installation directory. (Decompress the package to C: \ WEB \)
Set the php configuration file php. ini (in php \ php. ini)
1. If no php. ini file exists in the php Directory, copy the php. ini-development file and change it to php. ini.
2. Set the php extension dll path and search for extension_dir. The settings are as follows:
<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 dll (just remove the semicolon before 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. Add the php and php extension dll paths to the environment variable PATH. (C: \ WEB \ php; C: \ WEB \ php \ ext)
5.. php 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 Testing
In the Apache web directory, copy the following script to notepad and save it as phpinfo. php. Execute localhost/phpinfo. php. If you can print the php information, it indicates that php has been installed successfully.
<span style="font-family:SimSun;"><?phpphpinfo();?></span>