Install PhP4 in Windows2000

Source: Internet
Author: User

This article Article The purpose is to tell you how to configure PhP4 in your iis5. I use Windows professional English, iis5 English and php4.0.4-Win32 binaries, which can be downloaded from PhP official site www.php.net. Note that the php4.0.4 release candidate 1 source is prepared for Unix users. What you need is Php 4.0.4 release candidate1 binaries for Win32.
Note: First you need to install iis5, because Win2000 professional forgets it by default. The iis5 installation method does not need to be discussed here. If you have any questions, please refer to other materials.
OK!
Step 1: uncompress the php4.0.4-win32.zip package and place it under C: PhP4.
Step 2: copy the php. ini-Dist file under C: PhP4 to the WINNT directory and change it to PhP. ini. You can run it without modifying any parameters. You can modify some parameters according to different situations.
Step 3: Copy C: php4php4ts. DLL to the C: winntsystem32 directory.
Step 4: Start-> Programs-> Adminstrative Tools-> Internet Service Manager
Step 5: Expand "services and applications" in the Computer Management window Program "/" Internet Information Service ", right-click on" Default web site "and select properties. The" Default web site properties "window is displayed.
Step 6: click "ISAPI filter" in the "Default web site properties" window and click "add, in the pop-up "Filter Properties" window, enter "php" in "Filter Name", and enter "C: php4sapiphp4isapi" in "Executable File. DLL ", OK.
Step 7: click the "main directory" tab in the "Default web site properties" window, click the "configuration" button, and click the "add" button in the "Application configuration" window that appears, in the displayed "Add/edit application extension image" dialog box, enter "C: php4sapiphp4isapi" in the "executable file" text box. DLL, enter ". PHP "(Be sure to have that point), OK.
Step 8: Return to the command line window and enter the "net stop IISADMIN" command to terminate the IIS service. The system will ask you if you want to stop the related services. A: Yes.
Restart the IIS service.
OK, your configuration is over. Let's write a PHP program and test whether the configuration is successful! Edit a file named hello. php with the following content:
<? PHP
Echo "Hello, world! ";
?>
Save the file to the default file directory (C: inetpubwwwroot) of the default web node, open the browser, and enter localhost/hello in the address bar. PHP, if it goes well, the classic "Hello, world!" It should appear in your browser. If the page cannot be found and you can confirm that the preceding steps are correct, enter the address 127.0.0.1/hello in the address bar of the browser. PHP: if it succeeds, it indicates there is a problem with your hosts file. Edit the hosts file under C: winntsystem32driversetc and add "127.0.0.1 localhost.
Come on, start your PHP journey!

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.