Install PHP5 on IIS6 (take PHP5.2.0 for example)
1. First download the ZIP package for Windows on php.net. Then unzip, as decompressed in "C:\PHP5"
2. Copy the Php5ts.dll under the root directory to the system Windows directory, and then rename the Php.ini-dist file to php.ini and copy it to the system Windows directory.
3. Open the php.ini file with a text editor, look for "register_globals", and change the back off to on. This setting is about custom global variables.
4. Find "Extension_dir" and change the value of the following to the EXT subdirectory of PHP Decompression folder, such as "C:\php5\ext"
5, look for "extension", the need to use the expansion module before the number removed. If you need to use MySQL is Php_mysql.dll, if you need to use mysqli words, you need to add a sentence extension=php_mysqli.dll. Some extension libraries may require additional DLLs to work, see here, if you have a description in the comments in the list, you will need to find the file in the solution directory or ext subdirectory and copy it to the system Windows directory.
such as Php_mysql.dll and Php_mysqli.dll, you need to copy Libmysql.dll from the root directory to the system Windows directory
6, open IIS, find the site that needs to use PHP, right-click the properties, find the "Home Directory" tab, click the "Configure" button, in the "Mapping" tab, click "Add" button, through "Browse", find the PHP extract directory Php5isapi.dll file, OK, "extension" fill " . PHP, the other options are default.
7, find the Web service extension of IIS, click "Add a new Web service extension", the extension can be "PHP", add the file is also Php5isapi.dll, and "set the extended status to allow" tick.
8. Enter IISRESET in Start-run, OK, restart IIS. At this point, the installation of PHP5 on IIS6 has been completed.
Problems:
1, if there are some "failed to open stream" and other prompts, generally because of the permissions problem, my solution is to give everyone the PHP decompression directory read and run permissions, to IIS two users of the Web site read and run permissions. Related reference article: [Xiao Qin]win Host configuration PHP Solution Summary of several issues
PS: For the option settings in php.ini, you can view here.
Install MySQL5 on Windows (5.0.24a for example)
Download the installation files for Windows on mysql.com, then run, follow the prompts step by step next, basically do not need to make any adjustments. After the installation is complete, the configuration program is automatically opened and some adjustments are made as needed. To the last step, the configuration program may be prompted to not connect to the data server, this time, you need to click the Retry button, or the program will not be able to connect to the server situation.
If this is the case, you need to uninstall MySQL from MySQL's own uninstall program and empty the installation directory and data directory, reboot, and install. Otherwise, the previous question will be repeated. I was stuck here for a long time.
Install PERL5 on IIS6 (take 5.8.8.819 for example)
1, in ActiveState download ActivePerl, run, according to the prompts to complete the installation.
2. Open IIS, find the site that needs to use Perl, right-click Properties, find the "Home Directory" tab, click the "Configure" button, in the "Mappings" tab, click the "Add" button, through "Browse", find the Perl installation directory bin subdirectory, the lookup file type is set to CGI (*. EXE file), select the Perl.exe file, OK, "extension" to fill ". pl", and other options by default.
3. Locate the Web service extension for IIS and set the "Perl CGI Extension" to the allowed state.
4, the installation directory of Perl, give IIS two accounts to read and run, modify, write permissions.
Install Devms's iis-tools on IIS6 (for example, 1.1.0.0)
1, download the compression package on the devms.com, unzip.
2. Open IIS, find the site that needs to use Iis-tools, right-click Properties, find the "ISAPI Filter" tab, click the "Add" button, the filter name can be "Devms", browse the file, Locate the Devms.Com.IISTools.dll file in the unpacking package. OK to add.
3. Locate the Web service extension for IIS, click "Add a new Web service extension", the extension can be "Devms", add the file is also Devms.Com.IISTools.dll, and "set the extended status to allow" tick.
4, the Web directory of the Web site, give full access to the service account.
5. Restart IIS.
PTW:
Iis-tools Characteristics of Devms:
1. URL redirection (URL ReWrite)
Full support for various types of URL redirection. such as a common no-prefix name, etc.
Set redirection matching items with regular expressions. Up to 255 items
Supports conditional monitoring of access requests to files, such as cookies, reference sources, etc.
2, anti-theft chain
Implementation of file illegal access monitoring (prevent hotlinking). Allows two methods to be validated using reference sources and cookies