Build PHP environment in XP install PHP and configure

Source: Internet
Author: User
here and on the same release Baidu cloud download link: Http://pan.baidu.com/s/1jGZ8xVK

If you want to try the download process, see below:

PHP's official website download website: http://windows.php.net/download/

Click to enter and pull to the bottom of the page:


After downloading, unzip to the appropriate directory

You also need to start the configuration below:

A) php.ini-development for php.ini


b) Open the php.ini file and uncomment the following line

Extension=php_curl.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_pdo_mysql.dll
Extension=php_soap.dll

c) Set the time zone

Find keywords: date.timezone

For example, modify to: Date.timezone = PRC

D) The relationship between Apache and PHP is now being linked.

Open the httpd.conf in the apache24\conf\ directory

According to the keyword: #LoadModule找到对应的位置, below the corresponding location, add the following two lines of code

LoadModule php5_module "E:/setup/xp/php5.4/php5apache2_4.dll"
Phpinidir "e:/setup/xp/php5.4/"

The above two lines of code means loading the PHP module and informing Apache of the PHP configuration file

e) Add a suffix that can be resolved

Find AddType application/x-compress by keyword. Z

Then add the following three lines of code:

AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. htm

f) Test code

In the previous article we configured the root directory of Apache, came to our root directory, create a new. txt document, which is written in phpinfo ();
?>

After saving is closed, modify the suffix to. php


Then restart the server, let's experiment in the browser!


Successfully configure the environment!

The above describes the installation of PHP environment in XP installed PHP and configuration, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.