Install PHP4.0 official version _ PHP Tutorial on IIS

Source: Internet
Author: User
Install the official PHP4.0 version on IIS. This article is written in the Windows Simplified Chinese official version (IIS5.0) environment. It should also be suitable for IIS4.0 in Windows. please tell me if you have any questions. thank you for choosing here, this article is written in the Windows 2000 simplified Chinese official version (IIS5.0) environment, in Windows NT 4.0
IIS4.0 should also be suitable. if you have any questions, please let me know. thank you! ^ _ ^

1. software download:
Http://www.php.net/distributions/php-4.0.0-Win32.zip
2. unzip php-4.0.0-win32.zip to the PHP installation directory with the winziptest tool, for example, C: \ PHP.
Use $ PHP_ROOT to replace the PHP installation directory;
3. for detailed English installation documents, see the readme.txt file in the php_rootdirectory;
4. copy the php. ini-dist file under the $ PHP_ROOT directory to the C: \ WINNT directory, and copy C: \ WINNT \ php. ini-d
Ist is renamed to C: \ WINNT \ php. ini;
5. copy MSVCRT. DLL and php4ts. dll under the $ PHP_ROOT directory to the C: \ WINNT \ system32 directory. if
These files already exist in the C: \ WINNT \ system32 directory. do not overwrite them;
6. modify C: \ WINNT \ php. ini:
1) set extension_dir to the PHP installation directory, for example, extension_dir = C: \ PHP
2) configure the dynamic DLL library to be loaded. ensure that only the $ PHP_ROOT directory can be loaded.
This version comes with these dynamic libraries: php_calendar.dll, php_imap.dll, php_ldap
. Dll, so the configuration column of the dynamic library is as follows:
Windows Extensions
Extension = php_calendar.dll
Extension = php_imap.dll
Extension = php_ldap.dll
7. click Start> Program> Administrative Tools> Internet service manager to open Internet service manager, right
Click "default Web site"> "properties" to open the "default Web site properties" window. on the "ISAPI filter" configuration page, add
New filters, the filter name is PHP, and the executable file is the full path of the php4isapi. dll file $ PHP_ROOT \
Php4isapi. dll, for example, C: \ PHP \ php4isapi. dll. on the "main directory" configuration page, click "configure" to open the "application ".
In the "program configuration" window, add an application ing item. the executable file is the complete path of the php4isapi. dll file.
$ PHP_ROOT \ php4isapi. dll, for example, C: \ PHP \ php4isapi. dll. the extension is. php (you can also change it to another one.
But note that your PHP program should use it as the suffix.) check the "script engine;
8. create a PHP program test Directory, such as D: \ MyPHP. in this document, replace $ MyPHP with this directory.
In service manager, right-click "default Web site-> New-> Virtual Directory", alias: MyPHP, actual path: $ MyPHP
In this example, the path is D: \ MyPHP, with the permission to read, run the script, and browse;
9. restart the WWW service;
10. write a test program phpinfo. php under the $ MyPHP Directory (note that the suffix must be consistent with the extension in 7 ).
Is And then enter http: // localhost/myphp/phpinfo. php in the browser to test whether
If you see the PHP information, the installation is complete.

I wrote it in the IIS5.0 (simplified Chinese version) environment. It should also be suitable for IIS4.0 in Windows NT 2000. please tell me if you have any questions. thank you ,...

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.