[2] PHP development environment integration Apache2.2 and PHP5.2

Source: Internet
Author: User
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




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.