IIS6 PHP Configuration method

Source: Internet
Author: User
Tags iis ini sessions website server microsoft website

Multi-script support servers are now being used by more and more people. If you want to set up a supportfor PHP (as the current mainstream development language), ASP, asp.net(Microsoft's Strongest development language), JSP(the first choice for Sun enterprise applications), Perl Web Virtual Host Server, or Windows 2003 IIS(Microsoft's Web server platform)6 is the best. There are a lot of articles on the web that describe PHP (as the current mainstream development language) on IIS(Microsoft website Server platform) 6, but those methods are not bad performance or upgrade trouble. The following method allows you to upgrade very easily after the first configuration.

The upgrade described here refers to the upgrade from one PHP(as the current mainstream development language)version 4 to another PHP(as the current mainstream development language)version 4, or from a PHP(as the current mainstream development language) The 5 version upgrades to another PHP(as the current mainstream development language)5 version, instead of referring to PHP (as the current mainstream development language)4 upgrades to PHP(as now the mainstream development language)5.

Get ready:

1, a installed Windows 2003 server, and has installed IIS(Microsoft's Web server platform) 6.

2, download the Windows version of PHP(as the current mainstream development language) binary compression Package

Installation:

Unzip PHP(as the current mainstream development language) binary compression package to C:\php(as now the mainstream development language) directory (here assumes C: Disk is the system disk, that is, installed the Windows system disk, if the system disk is D: disk, then extract to D:\php(as now the mainstream development language) directory, and so on, the same below).

Then open "My Computer"-> "->" "Advanced"-> "Environment variable"-> "System variable"-> "path", edit its value, and add the following path address above:

C:\php(as the current mainstream development language); C:\php(as the current mainstream development language)\dlls; C:\php(as the current mainstream development language)\extensions; C:\php(as the current mainstream development language)\sapi;

PHP(as the current mainstream development language). Ini-dist or PHP(as the current mainstream development language). ini-recommended copied to the C:\Windows directory and renamed to PHP( As the current mainstream development language. INI, the general official release of the Web site of the server with PHP(as the current mainstream development language). Ini-dist, and as a debugging server with PHP(as the current mainstream development language). ini-recommended better. Of course, in general, this PHP(as the current mainstream development language). ini or need to be modified according to the actual situation.

Here are some of the necessary modification options:

Extension_dir = "C:\php(as the current mainstream development language)\extensions"

This is the directory where PHP(as the current mainstream development language) extension is placed, make sure it is the same as the directory you actually installed.

Extension=php(as the current mainstream development language)_mbstring.dll

; extension=php(as the current mainstream development language)_big_int.dll

Extension=php(as the current mainstream development language)_bz2.dll

Extension=php(as the current mainstream development language)_cpdf.dll

Extension=php(as the current mainstream development language)_crack.dll

Extension=php(as the current mainstream development language)_curl.dll

Extension=php(as the current mainstream development language)_db.dll

Extension=php(as the current mainstream development language)_dba.dll

Extension=php(as the current mainstream development language)_dbase.dll

Extension=php(as the current mainstream development language)_dbx.dll

Extension=php(as the current mainstream development language)_domxml(standardization is getting closer).DLL

; extension=php(as the current mainstream development language)_exif.dll

; extension=php(as the current mainstream development language)_fdf.dll

; extension=php(as the current mainstream development language)_filepro.dll

Extension=php(as the current mainstream development language)_gd2.dll

Extension=php(as the current mainstream development language)_gettext.dll

Extension=php(as the current mainstream development language)_hyperwave.dll

Extension=php(as the current mainstream development language)_iconv.dll

; extension=php(as the current mainstream development language)_ifx.dll

Extension=php(as the current mainstream development language)_iis(Microsoft's Web server platform)Func.dll

Extension=php(as the current mainstream development language)_imap.dll

; extension=php(as the current mainstream development language)_interbase.dll

Extension=php(as the current mainstream development language)_java.dll

Extension=php(as the current mainstream development language)_ldap.dll

; extension=php(as the current mainstream development language)_mcrypt.dll

Extension=php(as the current mainstream development language)_mhash.dll

Extension=php(as the current mainstream development language)_mime_magic.dll

Extension=php(as the current mainstream development language)_ming.dll

Extension=php(as the current mainstream development language)_mssql(a powerful database platform on the Windows platform).DLL

Extension=php(as the current mainstream development language)_msql.dll

; extension=php(as the current mainstream development language)_oci8.dll

Extension=php(as the current mainstream development language)_openssl.dll

Extension=php(as the current mainstream development language)_oracle(large Web site database platform). dll

Extension=php(as the current mainstream development language)_pdf.dll

Extension=php(as the current mainstream development language)_pgsql.dll

; extension=php(as the current mainstream development language)_printer.dll

Extension=php(as the current mainstream development language)_shmop.dll

; extension=php(as the current mainstream development language)_snmp.dll

Extension=php(as the current mainstream development language)_sockets.dll

; extension=php(as the current mainstream development language)_sybase_ct.dll

Extension=php(as the current mainstream development language)_w32api.dll

Extension=php(as now the mainstream development language)_xml(standardization is getting closer)Rpc.dll

Extension=php(as the current mainstream development language)_xslt.dll

Extension=php(as the current mainstream development language)_yaz.dll

Extension=php(as the current mainstream development language)_zip.dll

The above, with no semicolon at the beginning, is an open extension, and a semicolon is an extension that is not open. The above settings include all extensions that can be turned on by default installation on Windows 2003 (PHP is listed hereas the current mainstream development language) 4).

Session.save_path = C:\sessions

This is the default save directory for the session file, which must be a directory that exists, or the default sessions function will not work. I'm setting up a directory on a RAMDisk. Setting the Session.save_path on RAMDisk can speed up session processing. If you do not have RAMDisk installed, you can assign it to any of the other disks, such as C:\sessions directory, C:\Windows\Temp directory, and so on.

Technical Exchange is endless



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.