Install the PHP4 into the IIS5 of the Win2000.

Source: Internet
Author: User
Tags filter command line copy iis ini net win32 window
The purpose of this article in IIS is to tell you how to configure PHP4 to your IIS5 under Win2000 professional. I use the Windows2000 professional Chinese version, IIS5 Chinese version and Php4.0rc1-win32. This preview version of PHP4 is a pre-release version of 4 beta tests that can be downloaded from the official PHP site Www.php.net. Be careful not to download the wrong one, that PHP4.0 Release Candidate 1 source is for UNIX users, you need PHP 4.0 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.0rc1-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:\PHP4\Projects\php4\Release_TS_inline\php4ts.dll to the C:\WINNT\system32 directory.

Fourth step, point start/Run, input cmd start command-line mode.

Step fifth, on the command line, typing the command MMC \winnt\system32\compmgmt.msc, start Computer Management.

Step sixth, 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 seventh, on the Default Web Site Properties window, click the ISAPI Filter tab, tap the Add button, enter "PHP" in the filter name in the Pop-up Filter Properties window, and type "C:\PHP4\Projects\php4\sapi" in the executable file. \isapi\release_ts_inline\php4isapi.dll ", OK.




Step eighth, click the Home Directory tab on the Default Web Site Properties window. Click the Configure button, and in the pop-up Application Configuration window, click the Add button and enter the C:\PHP4\ in the executable text box in the Add/Edit Application Extension Image dialog box. Projects\php4\sapi\isapi\release_ts_inline\php4isapi.dll, enter ". php" in the Extension text box (note that you must have that point), OK.




Step Nineth, 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.

Step Tenth, enter the "net start w3svc" command to 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:


echo "hello,world!";

?>

Save this file in the default Web node's default file directory (C:\Inetpub\wwwroot), 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:\WINNT\system32\ Drivers\etc the Hosts file below to join the "127.0.0.1 localhost" line.

OK, let's start your PHP tour!


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.