The LAMP combination is good, but if you want to set up a Web virtual host server that supports PHP, ASP, ASP.net, JSP, Perl, or IIS 6 with Windows 2003, it's best. There are a lot of articles on the web that describe PHP on IIS 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 referred to here refers to upgrading from one PHP4 version to another PHP4 version, or upgrading from one PHP5 version to another PHP5 version, rather than upgrading from PHP4 to PHP5.
Get ready:
1, a installed Windows 2003 server, and has installed IIS 6.
2, download the Windows version of the PHP binary compression package
Installation:
Unzip the PHP binary compression package into the C:\php directory (assuming C: disk is the system disk, that is, the disk of Windows system is installed, if the system disk is D: disk, then unzip to the D:\php 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; C:\php\dlls; C:\php\extensions; C:\php\sapi;
Copy the Php.ini-dist or php.ini-recommended to the C:\Windows directory, and rename it to php.ini, the server that officially publishes the website uses php.ini-dist, and as the server used for debugging uses php.ini-recommended better. Of course, under normal circumstances, this php.ini still need to be modified according to the actual situation.
Here are some of the necessary modification options:
Extension_dir = "C:\php\extensions"
This is the directory where the PHP extensions are placed, make sure you are the same as the directory you are actually installing.
Extension=php_mbstring.dll
; Extension=php_big_int.dll
Extension=php_bz2.dll
Extension=php_cpdf.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_pdf.dll
Extension=php_pgsql.dll
; Extension=php_printer.dll
Extension=php_shmop.dll
; Extension=php_snmp.dll
Extension=php_sockets.dll
; Extension=php_sybase_ct.dll
Extension=php_w32api.dll
Extension=php_xmlrpc.dll
Extension=php_xslt.dll
Extension=php_yaz.dll
Extension=php_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 4 is listed here).
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.