The goal of this article is to show you how to configure PHP4 in your iis5. I use Windows professional, IIS5, and PHP4.0.4-Win32Binaries, which can be downloaded from PHP official site www.php.net. The goal of this article is to tell you how to configure PHP4 to 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.
Please note that you should first install IIS5, because Win2000 Professional forgets it by default. The IIS5 installation method does not need to be discussed here. if there is a title, 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 utilization programs"/"Internet information services" in the computer management window, right-click the "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 ", determined.
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 exploitation program extended name image" dialog box, enter "C: PHP4sapiphp4isapi" in the "executable file" text box. dll, and enter ". php "(be sure to have that point.
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 end the related service. A: Yes.
Restart the IIS service.
OK, your configuration is over. let's write a PHP program and test whether the configuration is successful! Compile a file named hello. php with the following content:
Echo 'Hello, World! ';
?>
Keep this file in 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 be displayed in your browser. If the page cannot be found and you can confirm that there is no title for the above steps, enter the address 127.0.0.1/hello in the address bar of the browser. php: If it succeeds, it indicates that your hosts file has a title. Compile the hosts file under C: WINNTsystem32driversetc and join the "127.0.0.1 localhost" line.
Come on, start your PHP journey!
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