Step 1: php-5.2.8-Win32.zip download link: download. csdn. netdetailuudmail08186987081 unzip the php file to D: PHP5.2. Step 2: copy the php file. ini-development, which is renamed as php in the current directory. remove ini; semicolon before extension_dir, set extension_dirD: Ampphp5.2
Step 1: php-5.2.8-Win32.zip download link: http://download.csdn.net/detail/uudmail0818/6987081 extract php file to D:/PHP5.2 the following step 2: copy a php. ini-development, which is renamed as php in the current directory. remove ini; semicolon before extension_dir, set extension_dir = D:/Amp/php5.2
Step 1:
Php-5.2.8-Win32.zip
Download link: http://download.csdn.net/detail/uudmail0818/6987081
Decompress the PHP file to D:/PHP5.2.
Step 2:
Copy a php. ini-development file and change it to php. ini in the current directory.
Remove the; semicolon before extension_dir, and set extension_dir = "D:/Amp/php5.2/ext". Configure the location where the PHP file is installed.
Remove; semicolon before timezone, set timezone = PRC, PHP is UTC by default, 0 time zone time, can be modified to the following time format: Asia/Chongqing (Chongqing ), asia/Shanghai (Shanghai), Asia/Urumqi (Urumqi), Asia/Macao (Macao), Asia/Hong_Kong (Hong Kong), Asia/Taipei (Taipei), and PRC.
Step 3:
Search for the. so location in the httpd configuration file and add the following two lines.
PHPIniDir "D:/Amp/php5.2" is the PHP installation directory.
LoadModule php5_module "D:/Amp/php5.2/php5apache2_2.dll"
Php5apache2_2.dll is an integrated link file between PHP5 and Apache2.2, which is very important.
Search for AddType in
AddType application/x-compress. Z
AddType application/x-gzip. gz. tgz
Add a few lines of code below to tell Apache to call the php file in case of a. php \ html \ txt \ htm file.
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. txt
AddType application/x-httpd-php. htm
PS:
A problem occurs during the integration of Apache and php:
Apache2.2 and php5.5 seem incompatible, and the version is a bit problematic. So I replaced php with 5.2.
Summary: integration successful