Install the PHP4.0 release on IIS _php

Source: Internet
Author: User
Keywords Official version installation catalogue Php c php_root
Iis

This article is written in the Windows 2000 Simplified Chinese version (IIS5.0) environment, 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, using WinZip and other decompression tools to untie 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. Please refer to the README.txt file in the $php_root directory for detailed English installation documents;
4. Copy the Php.ini-dist file from the $php_root directory to the C:\WINNT directory and C:\WINNT\php.ini-d
ist renamed to C:\WINNT\php.ini;
5. Copy the MSVCRT.DLL and Php4ts.dll in the $php_root directory to the C:\WINNT\system32 directory, if
These files already exist under the C:\WINNT\system32 directory, please do not overwrite them;
6, modify C:\WINNT\php.ini:
1) Set Extension_dir to the PHP installation directory, such as: Extension_dir = C:\PHP
2) Configure the dynamic Walks Library (DLL) to be loaded, be sure to load only the $php_root directory that exists
Dynamic walks Library, which comes with 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 "Start-Up program---management tools->internet Service Manager" to open Internet Services Manager, right
Click Default Web Site properties to open the Default Web Site Properties window, under the ISAPI Filters Configuration page, add a
A new filter with a filter name of PHP and an executable file as 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 Apply
Program Configuration window, add an application mapping entry, the full path of the executable file to the Php4isapi.dll file
$PHP _root\php4isapi.dll, such as C:\PHP\php4isapi.dll, with the extension. PHP (and of course it can be changed to another
, but pay attention to your PHP program to use it as the suffix OH), the "scripting 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 New virtual directory, Default Web site, myphp, and the actual path is $myphp
The path in this example is D:\MyPHP, which has read, run scripts, and browse permissions;
9, restart the WWW service;
10, in the $myphp directory to write a test program phpinfo.php (note the suffix and 7 in the extension of the same OH), the content
For , and then enter the http://localhost/myphp/phpinfo.php test on the browser to
See the PHP information to indicate that the installation is ready.
  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.