Home > Backend Development > PHP Tutorial > Install the official version of PHP40 on IIS

Install the official version of PHP40 on IIS

WBOY
Release: 2016-07-29 08:34:52
Original
859 people have browsed it

This article was written in the environment of Windows 2000 Simplified Chinese official version (IIS5.0). It should also be suitable for Windows NT 4.0's
IIS4.0. If you have any questions, please let me know. Thank you all, ^_^
1. Download the software:
http://www.php.net/distributions/php-4.0.0-Win32.zip
2. Use WinZIP and other decompression tools to unzip php-4.0.0-Win32.zip to 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 documentation, please refer to the README.txt file in the $PHP_ROOT directory;
4. Replace the PHP installation directory in the $PHP_ROOT directory. Copy the php.ini-dist file 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 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 only the dynamic link libraries that exist in the $PHP_ROOT directory can be loaded. This version comes with these dynamic link libraries: php_calendar.dll, php_imap.dll , php_ldap
.dll, so the configuration column of the dynamic connection library is as follows:
                                                   extension=php_ldap.dll
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 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, press The "Configure" button opens the "Application
Program Configuration" window, 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) and tick "script engine";
8. Create a PHP program test directory, such as D:MyPHP, in this article Replace this directory with $MyPHP. In "Internet Service Manager", right-click "Default Web Site->New->Virtual Directory". The alias is MyPHP. The actual path is the path in $MyPHP
. In this example, it is D:MyPHP, which has permission to read, run scripts and browse;
9. Restart the WWW service;
10. Write a test program phpinfo.php in the $MyPHP directory (note that the suffix must be the same as the extension in 7 The names are the same), the content is , and then enter http://localhost/myphp/phpinfo.php on the browser to test. If you can see the PHP information, it means it is installed.

The above has introduced the installation of the official version of PHP40 on IIS, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template