Php environment configuration in windows

Source: Internet
Author: User
1. decompress the PHP file to D: php-5.2.5 2, then open my computer-properties-advanced-environment variables-system variables-path, edit its value, add the path address :(; d: php-5.2.5; d: php-5.2.5dev; d: php-5.2.5ext) 3, in the D: php-5.2.5 folder, put php. ini-recommend

1. decompress the PHP file to D: /php-5.2.5 2, then open "my computer"-"properties"-"advanced"-"environment variable"-"system variable"-"path", edit its value, add the path address :(; d:/php-5.2.5; d:/php-5.2.5/dev; d:/php-5.2.5/ext) 3, in the D:/php-5.2.5 folder, put php. ini-recommend


1. Extract the PHP file to D:/php-5.2.5
2. Choose my computer> Properties> advanced> environment variables> system variables> path ", edit its value and add the path address below: (; d:/php-5.2.5; d:/php-5.2.5/dev; d:/php-5.2.5/ext)
3. In the D:/php-5.2.5 folder, copy php. ini-recommended to the c:/windows directory and rename it php. ini.
4. in php. find windwos extensions in ini, and the components supported in windows are displayed here. Remove ";" before extension = php_gd2.dll, extension = php_mbstring.dll, and extension = php_mysql.dll.

Apache
1. install apache
2. "conf/httpd. conf" in the apache installation directory"
LoadModule php5_module "D:/php-5.2.5/php5apache2_2.dll"
# Specify the php Directory and the php. ini directory.
PHPIniDir "C:/windows"
AddType application/x-httpd-php. php. phtml. php3. php4
AddType application/x-httpd-php-source. phps
Adddefacharcharset GB2312
DirectoryIndex index.html index.htm index. php
Add or update none of the above


Iis
1. Open "Internet Information Service (IIS) manager" and select "Add a new Web Service extension" in "Web Service extension ", the extension can be filled with "php isapi extension", the required file selection: D:/php-5.2.5/php5isapi. dll, and set the extension status to allow.
2. Choose "website"> "properties"> "ISAPI filter"> "add". Enter "PHP" as the filter name, and select "D" as the executable file: /php-5.2.5/php5isapi. dll.
3. Choose "website"> "properties"> "main directory"> "application settings"> "configuration"> "application extension"> "add", whether to select D:/php-5.2.5/php5isapi for the executable file. dll. Enter ". php" for the extension, and set the action to "GET, HEAD, POST ".
4. Choose "website"> "properties"> "document"> "enable default content document"> "add" to enable index. add php as the default content document.
5. Select "server machine name"> "all tasks"> "restart IIS" to restart IIS.

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.