New entry: Best PHP configuration in IIS6 environment

Source: Internet
Author: User
Tags website server
Although the LAMP combination is good, if you want to set up a Web virtual host server that supports both PHP, ASP, ASP. NET, JSP, and Perl, it is still the best to use IIS6 of Windows2003. There are a lot of articles on how to configure PHP on IIS6, but those methods

Although the LAMP combination is good, if you want to set up a Web virtual host server that supports both PHP, ASP, ASP. NET, JSP, and Perl, Windows 2003 IIS 6 is the best. There are many articles on the Internet that allow you to configure PHP on IIS 6, but these methods are either poor performance or difficult to upgrade. The following method allows you to easily upgrade after the first configuration.

The upgrade mentioned here refers to upgrading from a php4 version to another php4 version, or from a php5 version to another php5 version, rather than from php4 to php5.

Preparation:

1. an installed Windows 2003 Server with IIS 6 installed.

2. download the PHP binary package for windows

Installation:

Decompress the PHP binary package to the C: \ php Directory (assume that the C: disk is a system disk, that is, the Windows system disk is installed. if the system disk is a D: Disk, decompress it to D: \ php directory, and so on ).

Choose "My Computer"> "properties"> "advanced"> "environment variables"> "system variables"> "path" to compile the value, add the following path address:

C: \ php; C: \ php \ dlls; C: \ php \ extensions; C: \ php \ sapi;

Set php. ini-dist or php. copy ini-recommended to the C: \ Windows directory and change it to php. ini, generally officially announced that the website server uses php. ini-dist, and php. ini-recommended is better. Of course, in general, this php. ini still needs to be corrected according to the actual situation.

Here are some necessary correction options:

Extension_dir = 'C: \ php \ extension'

This is the directory where PHP expands. make sure that the directory is the same as the Directory you actually installed.

Extension = php_mbstring.dll

; Extension = php_big_int.dll

Extension = php_bz2.dll

Extension = php_c2.16.dll

Extension = php_crack.dll

Extension = php_curl.dll

Extension = php_db.dll

Extension = php_dba.dll

Extension = php_dbase.dll

Extension = php_dbx.dll

Extension = php_domxml.dll

; Extension = php_exif.dll

; Extension = php_fdf.dll

; Extension = php_filepro.dll

Extension = php_gd2.dll

Extension = php_gettext.dll

Extension = php_hyperwave.dll

Extension = php_iconv.dll

; Extension = php_ifx.dll

; Extension = php_iisfunc.dll

Extension = php_imap.dll

; Extension = php_interbase.dll

Extension = php_java.dll

Extension = php_ldap.dll

; Extension = php_mcrypt.dll

Extension = php_mhash.dll

Extension = php_mime_magic.dll

Extension = php_ming.dll

Extension = php_mssql.dll

Extension = php_msql.dll

; Extension = php_oci8.dll

Extension = php_openssl.dll

; Extension = php_oracle.dll

Extension = php_cmd.dll

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.