This article is written in the context of the Windows 2000 Simplified Chinese official edition (IIS5.0), in Windows NT 4.0
IIS4.0 should also be suitable, have any questions please tell me, here thank you, ^_^
1, software download:
Http://www.php.net/distributions/php-4.0.0-Win32.zip
2, with WinZip and other decompression tools to Php-4.0.0-win32.zip to the PHP installation directory, such as C:\PHP, this article
Use $php_root to replace the PHP installation directory;
3, detailed English installation documents, please refer to the $php_root directory of README.txt documents;
4, copy the Php.ini-dist file in the $php_root directory to the C:\WINNT directory, and will C:\WINNT\php.ini-d
ist renamed as C:\WINNT\php.ini;
5, the $php_root directory under the MSVCRT.DLL and Php4ts.dll copy to the C:\WINNT\system32 directory, if
These files already exist under the C:\WINNT\system32 directory, please do not overwrite;
6, modify the C:\WINNT\php.ini:
1) Set the Extension_dir to the PHP installation directory, such as: Extension_dir = C:\PHP
2 Configure the dynamic Walks Library (DLL) to load, note that you must ensure that only the $php_root directory exists
Dynamic walks Access library, which takes these dynamic walks libraries: Php_calendar.dll, Php_imap.dll, Php_ldap
. dll, so the configuration bar for the dynamic Walks Library is as follows:
; Windows Extensions
Extension=php_calendar.dll
Extension=php_imap.dll
Extension=php_ldap.dll
7, click the "Start-> program-> Administrative Tools->internet Service Manager" Open Internet Services Manager, right
Click Default Web Site-> properties to open the Default Web Site Properties window, and under the ISAPI Filter Configuration page, add a
A new filter named PHP, and the executable file is the full path to the Php4isapi.dll file $php_root\
Php4isapi.dll, such as C:\PHP\php4isapi.dll; under the Home Directory Configuration page, press the Configure button to open the application
Program Configuration window, add an application mapping entry, and the executable file is the full path to the Php4isapi.dll file
$PHP _root\php4isapi.dll, such as C:\PHP\php4isapi.dll, with the extension. PHP (which can be changed to something else, of course).
, but pay attention to your PHP program to use it as a suffix oh, the "script engine" tick;
8, build a PHP program test directory, such as D:\MyPHP, in this article with $myphp to replace the directory, in the "Internet
Service Manager, right-click the default Web site-> new-> virtual directory, the alias is myphp, and the actual path is $myphp
The path in this example is D:\MyPHP, with read, run scripts, and browsing permissions;
9, restart the WWW service;
10, in the $myphp directory to write a test program phpinfo.php (note suffix to and 7 in the extension of the same OH), content
For.? Phpinfo ();, and then enter the http://localhost/myphp/phpinfo.php test on the browser to
Seeing the PHP information means that the installation is ready.
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.