Installing and Configuring the PHP development Environment _php Tutorial in Windows IIS Environment

Source: Internet
Author: User
Tags php development environment

First, the PHP compression package (here to PHP4.3.2 for example) extracted to the C:php-4.3.2-win32 directory, and then found a file called php.ini-recommended, renamed him to PHP.ini.

Second, open the file, find Extension_dir = "./", change it to Extension_dir = "c:php-4.3.2-win32extensions"; find Session.save_path =/tmp and change it to SES Sion.save_path = c:php-4.3.2-win32sessions. ( Note: At this point you need to create a sessions folder in the C:php-4.3.2-win32 directory to hold the session.) )

Copy the modified php.ini file to the C:winnt directory and copy the Php4ts.dll file under C:php-4.3.2-win32 to the C:winntsystem32 directory.

Open "Internet Service Manager", select the site you want to support PHP, open the property page, click on the "ISAPI Filter" tab, click "Add", in the "Filter Properties" window of the pop-up "filter name" to fill "php", in the "Executable file" to fill in "C: Php-4.3.2-win32sapiphp4isapi.dll "(one shown), click OK.

Five, click on the "Home Directory" tab, select "Application Settings" in the "Configuration" button, in the pop-up "Application Configuration" window, click on the "Add" button, in the "Add/Edit Application Extension Mapping" window, "the executable file" in the "C: Php-4.3.2-win32sapiphp4isapi.dll "," extension "to fill in" PHP ". (as shown in two).

OK, everything's done, restart IIS, write a phpinfo in your page file directory, and test to see if the PHP file can be parsed correctly. If you generate a 500 error, make sure you haven't forgotten the third step.

Figure 1

Figure 2

http://www.bkjia.com/PHPjc/531663.html www.bkjia.com true http://www.bkjia.com/PHPjc/531663.html techarticle first, the PHP compression package (here to PHP4.3.2 for example) extracted to the C:php-4.3.2-win32 directory, and then found a file called php.ini-recommended, renamed him to PHP.ini. ...

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