The LAMP combination is good, but if you want to set up a web hosting 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.
Prepare:
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 to the c:php directory (here assumes that C: disk is the system disk, that is, installed the Windows system disk, 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:phpdlls; C:phpextensions; C:phpsapi;
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:phpextensions"
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