_php Foundation for installation of PHP4 under Windows2000
Source: Internet
Author: User
The purpose of this article is to tell you how to configure PHP4 into your IIS5 under Win2000 professional. I use the Windows2000 professional English version, IIS5 English version and Php4.0.4-win32 Binaries, which can be downloaded from the official PHP site Www.php.net. Be careful not to download the wrong one, that PHP4.0.4 Release Candidate 1 source is for UNIX users, you need PHP 4.0.4 release Candidate1 Binaries for Win32.
Note that first you have to install IIS5, because Win2000 professional the default installation when you forget it. IIS5 installation method Here is not to discuss it, if there are problems please refer to other information.
Ok!
The first step is to unlock the Php4.0.4-win32.zip compression pack, which you can put underneath the C:PHP4.
The second step is to copy the Php.ini-dist file below the C:PHP4 to the Winnt directory and rename it to PHP.ini. You do not need to modify any of the parameters can be run, of course, depending on the circumstances you can modify some of the parameters.
The third step is to copy the C:php4php4ts.dll to the C:winntsystem32 directory.
Step fourth, Dot start->programs->adminstrative tools->internet service Manager
Step fifth, expand Services and Applications/Internet Information Services on the Computer Management window, right-click on the Default Web site, select Properties, and the Default Web Site Properties window pops up.
Step sixth, on the Default Web Site Properties window, click the ISAPI Filter tab, and then tap the Add button, enter "PHP" in the filter name in the Pop-up Filter Properties window, and enter "C:php4sapiphp4isapi.dll" in the executable file. Are you sure.
Step seventh, click the Home Directory tab on the Default Web Site Properties window. Click the Configure button, click the Add button in the application Configuration window that pops up, and in the Add/Edit Application Extension Image dialog box, enter the "C:" In the executable text box. PHP4sapiphp4isapi.dll, enter ". php" in the Extension text box (note that you must have that point), OK.
Step eighth, back to the Command Line window, enter the "net stop IISAdmin" command to terminate the IIS service. The system will ask you if you want to stop the relevant service.
Restart the IIS service.
OK, your configuration to this end, let us write a PHP program to test the success of the configuration! Edit a file named hello.php, which reads:
<?php
echo "hello,world!";
?>
Save this file in the default Web node's default file directory (C:inetpubwwwroot), and then open the browser, enter localhost/hello.php in the address bar, if smooth, classic "hello,world!" Should appear in your browser. If you can't find the page, and you can confirm the above steps are no problem, then in the browser address bar to enter the address 127.0.0.1/hello.php try, if you can succeed, you have a Hosts file problem, please edit C: Winntsystem32driversetc the Hosts file below to join the "127.0.0.1 localhost" line.
OK, let's start your PHP tour!
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