Php environment configuration tutorial in Windows 7

Source: Internet
Author: User
This article describes how to configure the php environment in Windows 7. This article describes how to configure the PHP environment in Windows 7, the steps include downloading the installation file, configuring PHP, adding it to system variables, and checking whether the installation is successful,

This article describes how to configure the php environment in Windows 7. This article describes how to configure the PHP environment in Windows 7, the steps include downloading the installation file, configuring PHP, adding it to system variables, and checking whether the installation is successful,

1. Download the package

First download the package from the php official website. Official website address:

Ii. Decompression

Decompress your package and place it in the directory except drive C (the folder is not named in Chinese)

3. Modify the php installation package file

Find "php. ini-development" in the php root directory and change it to "php. ini"

Found in php. ini (The following is not set)

Find the following statements and remove the ";" before these statements:

The Code is as follows:


; Extension = php_gd2.dll
; Extension = php_mysql.dll
; Extension = php_sockets.dll

Find the following two sentences:

The Code is as follows:


; On windows:
; Extension_dir = "ext"

Change the last sentence to (remove the semicolon ):

The Code is as follows:


Extension_dir = "D: \ php-5.5.7 \ ext" // your php Directory

4. Add the environment variable

The environment variable settings for win7 are similar to those for xp. Right-click computer> Properties> advanced system settings and choose advanced> environment variable from system properties]

V. php version check

,

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.