This article was written in the environment of Windows 2000 Simplified Chinese official version (IIS5.0). It should also be suitable for
IIS4.0 of Windows NT 4.0. Please let me know if you have any questions. Thank you all, ^ _^
1. Software download:
http://www.php.net/distributions/php-4.0.0-Win32.zip
2. Use WinZIP and other decompression tools to decompress php -4.0.0-Win32.zip is extracted to the PHP installation directory, such as C:PHP. In this article, $PHP_ROOT is used to replace the PHP installation directory;
3. For detailed English installation documents, please refer to the $PHP_ROOT directory. README.txt file;
4. Copy the php.ini-dist file in the $PHP_ROOT directory to the C:WINNT directory, and rename C:WINNTphp.ini-d
ist to C:WINNTphp.ini ;
5. Copy MSVCRT.DLL and php4ts.dll in the $PHP_ROOT directory to the C:WINNTsystem32 directory. If
these files already exist in the C:WINNTsystem32 directory, please do not overwrite them;
6. Modify C:WINNTphp.ini:
1) Set extension_dir to the PHP installation directory, such as: extension_dir = C:PHP
2) Configure the dynamic link library (DLL) to be loaded. Be sure to ensure that it can only be loaded. There is
dynamic link library in the $PHP_ROOT directory. This version comes with these dynamic link libraries: php_calendar.dll, php_imap.dll, php_ldap
.dll, so the configuration column of the dynamic link library is as follows:
;Windows Extensions
7. Click "Start->Programs->Administrative Tools->Internet Service Manager" Open "Internet Service Manager", right
click "Default Web Site-> Properties" to open the "Default Web Site Properties" window, under the "ISAPI Filter" configuration page, add a
Create a new filter, the filter name is PHP, and the executable file is the full path of the php4isapi.dll file $PHP_ROOT
php4isapi.dll, such as C:PHPphp4isapi.dll; under the "Home Directory" configuration page, click " Click the "Configure" button to open the "Application
Program Configuration" window and add an application mapping item. The executable file is the full path of the php4isapi.dll file
$PHP_ROOTphp4isapi.dll, such as C:PHPphp4isapi.dll, with the extension .php (of course it can be changed to something else
, but please note that your PHP program must use it as the suffix), tick "Script Engine";
8. Create a PHP program test directory, such as D:MyPHP, use $MyPHP to replace this directory in this article. In "Internet
Service Manager", right-click "Default Web Site->New->Virtual Directory", the alias is MyPHP, the actual path It is the path in $MyPHP
, in this example it is D:MyPHP, with permissions to read, run scripts and browse;
9. Restart the WWW service;
10. Write in the $MyPHP directory A test program phpinfo.php (note that the suffix must be consistent with the extension in 7), the content
is phpinfo(); ?>, and then enter http://localhost/myphp/ on the browser Test phpinfo.php. If you can
see PHP information, it means it is installed.
http://www.bkjia.com/PHPjc/316754.html
www.bkjia.com