PHP4 installation _php Tutorial under Windows2000

Source: Internet
Author: User
The purpose of this article is to tell you how to configure PHP4 in your IIS5 under Win2000 professional. I use Windows2000 Professional English version, IIS5 English version and Php4.0.4-win32 Binaries, can be downloaded from the official PHP site Www.php.net. Be careful not to download the wrong, the PHP4.0.4 Release Candidate 1 source is for UNIX users, what you need is PHP 4.0.4 Release Candidate1 Binaries for Win32.
Note that first you have to install IIS5, because Win2000 professional is forgotten when it is installed by default. IIS5 installation method is not discussed here, if there is a problem, please refer to other information.
Ok!
The first step is to untie the Php4.0.4-win32.zip compression pack, and you can put it under C:PHP4.
The second step, the C:PHP4 below the php.ini-dist file copied to the Winnt directory, and renamed to PHP.ini. You do not need to modify any parameters to run, of course, depending on the situation you can modify some parameters.
The third step is to copy the C:php4php4ts.dll into the C:winntsystem32 directory.
Fourth step, point start->programs->adminstrative tools->internet Service Manager
Fifth, on the Computer Management window, expand Services and Applications/Internet Information Services, right-click on the Default Web site, select Properties, and the system pops up the default Web site Properties window
Sixth, on the Default Web Site Properties window, click the ISAPI Filter tab, tap the Add button, enter PHP in the filter name of the Filter Properties window that pops up, enter "C:php4sapiphp4isapi.dll" in the executable file, Are you sure.
Seventh, in the "Default Web Site Properties" window, click on the "Home Directory" tab, click the "Configure" button, in the pop-up "Application Configuration" window, click the "Add" button, in the pop-up "Add/Edit Application Extension Image" dialog box in the "Executable" text box, enter "C: PHP4sapiphp4isapi.dll "," extension "text box, enter". PHP "(note must have that point), OK.
Eighth step, go back 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, answer yes.
Restart the IIS service.
OK, your configuration to this is over, let us write a PHP program, test the configuration is successful! Edit a file with the name hello.php, with the following:
echo "hello,world!";
?>
Save this file in the default Web node's default file directory (c:inetpubwwwroot), then open the browser, enter localhost/hello.php in the address bar, if smooth, classic "hello,world!" Should appear in your browser. If you cannot find the page, and you can confirm that the above steps are not a problem, then enter the address in the browser address bar 127.0.0.1/hello.php try, if successful, it indicates that your hosts file has a problem, please edit C: Winntsystem32driversetc The following Hosts file, join the "127.0.0.1 localhost" line.
OK, let's start your PHP trip!

http://www.bkjia.com/PHPjc/316350.html www.bkjia.com true http://www.bkjia.com/PHPjc/316350.html techarticle The purpose of this article is to tell you how to configure PHP4 in your IIS5 under Win2000 professional. I use Windows2000 Professional English version, IIS5 English version and Php4.0.4-win32 Binar ...

  • 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.